require = function t(e, i, n) {
    function s(a, r) {
        if (!i[a]) {
            if (!e[a]) {
                var c = "function" == typeof require && require;
                if (!r && c) return c(a, !0);
                if (o) return o(a, !0);
                var h = new Error("Cannot find module '" + a + "'");
                throw h.code = "MODULE_NOT_FOUND",
                h
            }
            var l = i[a] = {
                exports: {}
            };
            e[a][0].call(l.exports,
            function(t) {
                var i = e[a][1][t];
                return s(i ? i: t)
            },
            l, l.exports, t, e, i, n)
        }
        return i[a].exports
    }
    for (var o = "function" == typeof require && require,
    a = 0; a < n.length; a++) s(n[a]);
    return s
} ({
    activity: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "f7924DVaXZMC7GISjZ5NZ0D", "activity"),
        cc.Class({
            "extends": cc.Component,
            properties: {},
            onLoad: function() {
                this.hallLogic = kf.require("logic.hall"),
                this.dictLogic = kf.require("logic.dict"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.lang = kf.require("util.lang"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.registerMsg(),
                this.canvas = cc.find("Canvas"),
                this.rewardArr = []
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerMsg: function() {
                this.registerHandler = [];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            init: function() {
                this.activityList(),
                this.showActivityContent()
            }
        }),
        cc._RFpop()
    },
    {}],
    arena: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "a721f6TZJ1FHJg+Y2vbWanB", "arena"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                icon: [cc.SpriteFrame],
                rewordNode: [cc.Node],
                topItem: cc.Prefab
            },
            onLoad: function() {
                this.dictLogic = kf.require("logic.dict"),
                this.hallLogic = kf.require("logic.hall"),
                this.protocol = kf.require("util.byteProtocol"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.roomLogic = kf.require("logic.room"),
                this.richlabel = kf.require("util.richlabel"),
                this.lang = kf.require("util.lang"),
                this.canvas = cc.find("Canvas"),
                this.explainLabel = this.node.getChildByName("windows_Blue07").getChildByName("explain"),
                this.isInGameLabel = this.node.getChildByName("windows_Blue07").getChildByName("isInGame"),
                this.gold = this.node.getChildByName("gold"),
                this.intermediate = this.node.getChildByName("intermediate"),
                this.senior = this.node.getChildByName("senior"),
                this.windows = this.node.getChildByName("windows_Blue04"),
                this.windowsLabel = this.windows.getChildByName("label").getComponent(cc.Label),
                this.rankWindows = this.windows.getChildByName("rankWindows"),
                this.rankParentNode = this.rankWindows.getChildByName("scrollView").getChildByName("view").getChildByName("content"),
                this.currentRankLabel = this.rankWindows.getChildByName("currentRank").getComponent(cc.Label),
                this.refreshRankButton = this.rankWindows.getChildByName("refresh"),
                this.countTimeLabel = this.refreshRankButton.getChildByName("label").getComponent(cc.Label),
                this.ruleWindows = this.windows.getChildByName("ruleWindows"),
                this.ruleLabel = this.ruleWindows.getChildByName("ruleLabel"),
                this.viewContent = this.node.getChildByName("scrollView").getChildByName("view").getChildByName("content"),
                this.gameNameLabel = this.viewContent.getChildByName("Image_VIPtitle2").getChildByName("label"),
                this.isInRankingLabel = this.viewContent.getChildByName("ranking"),
                this.conditionsSprite = this.viewContent.getChildByName("Icon_Gold"),
                this.reqId = 0,
                this.competRankArr = [],
                this.registerEvent(),
                this.initLabel(),
                this.goldButtonClick()
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerEvent: function() {
                this.registerHandler = [];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            closePopUp: function() {
                var t = this.node.getComponent(cc.Animation).play();
                t.wrapMode = cc.WrapMode.Reverse,
                this.canvas.getChildByName("hallScene").active === !0 && this.node.parent.parent.getChildByName("room").getComponent(cc.Animation).play("room"),
                this.scheduleOnce(function() {
                    this.node.active = !1
                },
                .5)
            },
            initLabel: function() {
                this.explainLabel.getComponent(cc.Label).string = this.dictLogic.getLanguage("150131")[1],
                this.ruleLabel.getComponent(cc.Label).string = this.dictLogic.getLanguage("140509")[1]
            },
            goldButtonClick: function() {
                this.explainLabel.active = !0,
                this.gold.getChildByName("gold2").active = !0,
                this.intermediate.getChildByName("intermediate2").active = !1,
                this.senior.getChildByName("senior2").active = !1,
                this.setRoomName("140513"),
                this.roomId = this.dictLogic.getRoomIdByName("金币赛"),
                this.reqId = 3,
                this.userCompetInfoRequest()
            },
            intermediateButtonClick: function() {
                this.explainLabel.active = !1,
                this.gold.getChildByName("gold2").active = !1,
                this.intermediate.getChildByName("intermediate2").active = !0,
                this.senior.getChildByName("senior2").active = !1,
                this.setRoomName("140514"),
                this.roomId = this.dictLogic.getRoomIdByName("中级奖券场"),
                this.reqId = 4,
                this.userCompetInfoRequest()
            },
            seniorButtonClick: function() {
                this.explainLabel.active = !1,
                this.gold.getChildByName("gold2").active = !1,
                this.intermediate.getChildByName("intermediate2").active = !1,
                this.senior.getChildByName("senior2").active = !0,
                this.setRoomName("140515"),
                this.roomId = this.dictLogic.getRoomIdByName("高级奖券场"),
                this.reqId = 5,
                this.userCompetInfoRequest()
            },
            viewRankingButtonClick: function() {
                this.competRankRequest(),
                this.windowsLabel.string = this.dictLogic.getLanguage("150273")[1],
                this.ruleWindows.active = !1,
                this.rankParentNode.active = !0,
                this.windows.active = !0
            },
            ruleButtonClick: function() {
                this.windowsLabel.string = this.dictLogic.getLanguage("150276")[1],
                this.ruleWindows.active = !0,
                this.rankParentNode.active = !1,
                this.windows.active = !0
            },
            intoGameButtonClick: function() {
                var t = "";
                switch (this.reqId) {
                case 3:
                    t = this.dictLogic.getLanguage("130461")[1];
                    break;
                case 4:
                    t = this.dictLogic.getLanguage("130461")[1];
                    break;
                case 5:
                    t = this.dictLogic.getLanguage("150023")[1];
                    break;
                default:
                    return
                }
                t = this.richlabel.replaceString(t, this.protocol.getFieldValue("UserCompetInfoRespone", "costNum"));
                var e = {
                    message: t,
                    button1: {
                        name: this.lang.get("MBCANCEL"),
                        frame: 1,
                        callback: function() {}
                    },
                    button3: {
                        name: this.lang.get("MBOK"),
                        frame: 0,
                        callback: function() {}
                    }
                };
                this.clientEvent.dispatchEvent("showMessage", e)
            },
            windowsCloseButtonClick: function() {
                this.windows.active = !1
            },
            refreshRankButtonClick: function() {
                this.refreshRankButton.getComponent(cc.Button).interactable = !1,
                this.countTime = 3,
                this.countTimeLabel.string = this.countTime,
                this.competRankRequest(),
                this.schedule(this.refreshUpdate, 1)
            },
            refreshUpdate: function() {
                this.countTime--,
                this.countTimeLabel.string = this.countTime,
                0 === this.countTime && (this.refreshRankButton.getComponent(cc.Button).interactable = !0, this.countTimeLabel.string = this.dictLogic.getLanguage("150019")[1], this.unschedule(this.refreshUpdate))
            },
            setRoomName: function(t) {
                var e = this.dictLogic.getLanguage(t)[1];
                this.gameNameLabel.getComponent(cc.Label).string = e
            },
            userCompetInfoRequest: function() {
                this.hallLogic.userCompetInfoRequest(this.roomId),
                this.hallLogic.queryDictRewardRequest(this.roomId, this.reqId)
            },
            competRankRequest: function() {
                this.hallLogic.competRankRequest(this.roomId)
            },
            setCompetInfo: function() {
                var t = this.protocol.getFieldValue("UserCompetInfoRespone", "costType"),
                e = this.protocol.getFieldValue("UserCompetInfoRespone", "rank");
                switch (t) {
                case 1:
                    this.conditionsSprite.getComponent(cc.Sprite).spriteFrame = this.icon[0];
                    break;
                case 2:
                    this.conditionsSprite.getComponent(cc.Sprite).spriteFrame = this.icon[0];
                    break;
                case 3:
                    this.conditionsSprite.getComponent(cc.Sprite).spriteFrame = this.icon[1]
                }
                if (this.conditionsSprite.getChildByName("label").getComponent(cc.Label).string = this.protocol.getFieldValue("UserCompetInfoRespone", "costNum"), 0 === e) this.isInRankingLabel.getComponent(cc.Label).string = this.dictLogic.getLanguage("130094")[1],
                this.currentRankLabel.string = this.dictLogic.getLanguage("130094")[1];
                else {
                    var i = this.dictLogic.getLanguage("130097")[1];
                    i = this.richlabel.replaceString(i, e),
                    i = i.split(":")[0],
                    this.isInRankingLabel.getComponent(cc.Label).string = i,
                    this.currentRankLabel.string = this.dictLogic.getLanguage("130450")[1] + e
                }
            },
            setCompetRankReward: function() {
                var t = this.protocol.getFieldValue("protoQueryDictRewardResponse", "reqId");
                if (!t) {
                    var e = this.protocol.getFieldValue("protoQueryDictRewardResponse", "rewardList");
                    switch (e.length) {
                    case 3:
                        this.viewContent.height = 445,
                        this.rewordNode[3].active = !1,
                        this.rewordNode[4].active = !1;
                        break;
                    case 4:
                        this.viewContent.height = 485,
                        this.rewordNode[3].active = !0,
                        this.rewordNode[4].active = !1;
                        break;
                    case 5:
                        this.viewContent.height = 525,
                        this.rewordNode[3].active = !0,
                        this.rewordNode[4].active = !0
                    }
                    for (var i = 0; i < e.length; i++) {
                        var n = this.protocol.getFieldValueEx(e[i], "ticket_num"),
                        s = this.protocol.getFieldValueEx(e[i], "coin_num");
                        0 !== n ? (this.rewordNode[i].getChildByName("gold1").getComponent(cc.Sprite).spriteFrame = this.icon[1], n >= 1e4 ? this.rewordNode[i].getChildByName("label").getComponent(cc.Label).string = n / 1e4 + this.dictLogic.getLanguage("130056")[1] : this.rewordNode[i].getChildByName("label").getComponent(cc.Label).string = n) : 0 !== s && (this.rewordNode[i].getChildByName("gold1").getComponent(cc.Sprite).spriteFrame = this.icon[0], s >= 1e4 ? this.rewordNode[i].getChildByName("label").getComponent(cc.Label).string = s / 1e4 + this.dictLogic.getLanguage("130056")[1] : this.rewordNode[i].getChildByName("label").getComponent(cc.Label).string = s);
                        var o = this.protocol.getFieldValueEx(e[i], "rankings");
                        o = o.split(";");
                        var a = this.dictLogic.getLanguage("130097")[1];
                        if (o[0] === o[1]) var r = o[0];
                        else var r = o[0] + "-" + o[1];
                        a = this.richlabel.replaceString(a, r),
                        this.rewordNode[i].getComponent(cc.Label).string = a
                    }
                }
            },
            showCompetRank: function() {
                this.deleteCompetRank();
                var t = this.rankParentNode.height;
                this.competRankArr = this.protocol.getFieldValue("CompetRankRespone", "rankList");
                for (var e = 0; e < this.competRankArr.length; e++) {
                    var i = cc.instantiate(this.topItem);
                    this.rankParentNode.addChild(i),
                    i.getComponent("topItem").arenaRankInit(this.competRankArr[e])
                }
                if (this.competRankArr.length > 4) {
                    var n = this.arenaRankArr.length - 4;
                    this.rankParentNode.height = n * this.topItem.data.getContentSize().height + t,
                    this.rankParentNode.parent.height = n * this.topItem.data.getContentSize().height + t
                }
            },
            deleteCompetRank: function() {
                this.rankParentNode.removeAllChildren()
            }
        }),
        cc._RFpop()
    },
    {}],
    bagItem: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "2dc58IERGRDF4qhwyGuXT55", "bagItem"),
        cc.Class({
            "extends": cc.Component,
            properties: {},
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent"),
                this.protocol = kf.require("util.byteProtocol"),
                this.buttonClick()
            },
            init: function(t) {
                var e = t.resPath;
                if (t.num && t.num > 0) {
                    var i = this.node.getChildByName("numLabel");
                    i.getComponent(cc.Label).string = t.num,
                    i.active = !0
                }
                this.node.itemId = t.id,
                this.node.itemTypeId = t.type;
                var n = kf.require("logic.dict").getItemName(null, t.id);
                this.node.getChildByName("nameLabel").getComponent(cc.Label).string = n,
                cc.loader.loadRes(e,
                function(t, e) {
                    var i = new cc.SpriteFrame;
                    i.initWithTexture(e),
                    this.node.getChildByName("showSprite").getComponent(cc.Sprite).spriteFrame = i
                }.bind(this))
            },
            buttonClick: function() {
                this.node.on("touchend",
                function(t) {
                    var e = t.target;
                    this.clientEvent.dispatchEvent("clickItemInfo", e.itemId, e.itemTypeId, e.itemClass)
                },
                this)
            }
        }),
        cc._RFpop()
    },
    {}],
    bagLogic: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "fa8abOryJhDBbeVk3UcaA/n", "bagLogic"),
        window.logic.bag = function() {
            var t = {},
            e = kf.require("util.lang"),
            i = kf.require("util.network"),
            n = kf.require("basic.clientEvent"),
            s = kf.require("util.byteProtocol"),
            o = kf.require("logic.login"),
            a = kf.require("logic.dict");
            kf.require("logic.time");
            return t.init = function() {
                this.hotItemInfo = [],
                this.ordinaryItemInfo = [],
                this.bagItemInfo = [],
                this.orderInfoArr = [],
                this.itemInfoArr = [],
                this.itemArr = [],
                this.itemInfo = [],
                this.prizeInfo = [],
                this.registerMsg()
            },
            t.queryItemInfoRequest = function(t) {
                var e = [o.getUin(), t];
                i.send("QueryItemInfoRequest", e)
            },
            t.giftShopListRequest = function() {
                var t = [o.getUin()];
                i.send("GiftShopListRequest", t)
            },
            t.initPrizeChangeInfo = function() {
                this.prizeInfo = [],
                this.prizeInfo = a.getChangeInfo();
                for (var t = 0; t < this.prizeInfo.length; t++) {
                    var i = this.prizeInfo[t],
                    n = i.Hot;
                    switch (i.myPngUrl = a.getItemResPathForChange(i.ItemId), i.itemName = a.getItemName(null, i.ItemId), i.desc = a.getItemDesc(i.ItemId), 10001 === i.ItemId && 15 === i.ID && (i.itemName = e.get("11gold") + i.itemName, i.desc = i.itemName), n) {
                    case 0:
                        this.ordinaryItemInfo.push(i);
                        break;
                    case 1:
                        this.hotItemInfo.push(i)
                    }
                }
            },
            t.queryItemDescRequest = function(t) {
                var e = [o.getUin(), t];
                i.send("QueryItemDescRequest", e)
            },
            t.buyObjectItemRequest = function(t) {
                var e = [o.getUin(), t];
                i.send("BuyObjectItemRequest", e)
            },
            t.ticketExchangeRequest = function(t, e) {
                var n = [o.getUin(), t, e];
                i.send("TicketExchangeRequest", n)
            },
            t.orderInfoRequest = function() {
                var t = [o.getUin()];
                i.send("OrderInfoRequest", t)
            },
            t.getItemInfoRequest = function(t) {
                i.send("GetItemInfoRequest")
            },
            t.useTrumpetRequest = function(t) {
                var e = [t];
                i.send("UseTrumpetRequest", e)
            },
            t.useItemRequest = function(t) {
                var e = [t];
                i.send("UseItemRequest", e)
            },
            t.verifyCodeRequest = function(t) {
                var e = [o.getUin(), t];
                i.send("VerifyCodeRequest", e)
            },
            t.useTelFareItemRequest = function(t, e, n, s) {
                var a = [o.getUin(), t, e, n, s];
                i.send("UseTelFareItemRequest", a)
            },
            t.useObjectItemRequest = function(t, e, n, s, a) {
                var r = [o.getUin(), t, e, n, s, a];
                i.send("UseObjectItemRequest", r)
            },
            t.updateBagItem = function() {
                this.itemArr = [],
                s.getFieldValue("UserItemRespone", "pkg_list") ? this.itemArr = s.getFieldValue("UserItemRespone", "pkg_list") : this.itemArr = s.getFieldValue("LoginRespone", "pkg_list")
            },
            t.cleanItemArr = function() {
                this.bagItemInfo = []
            },
            t.pushItemIntoBagArr = function() {},
            t.getItemPngUrl = function(t) {
                return window.clientConfig.pngUrl + t.split("https://qw.2dqc.com/")[1]
            },
            t.judgeItemName = function(t) {
                return t === a.getLanguage("140127")[1] || t === a.getLanguage("140128")[1]
            },
            t.countCoinBaseNum = function(t, e) {
                if (t < e) var i = 1;
                else var i = Math.floor(t / e);
                return i
            },
            t.getItemId = function(t) {
                var e = s.getFieldValueEx(this.itemArr[t], "item_id");
                return e
            },
            t.saveItemInfo = function(t) {
                for (var e = 0; e < this.bagItemInfo.length; e++) t === s.getFieldValueEx(this.bagItemInfo[e], "itemTypeId") && (this.buyItemName = s.getFieldValueEx(this.bagItemInfo[e], "itemName"))
            },
            t.updateBagOrder = function() {
                var t = s.getFieldValue("OrderInfoRespone", "order_list");
                this.cleanOrderArr();
                for (var e = 0; e < t.length; e++) this.getBagOrder(t[e])
            },
            t.cleanOrderArr = function() {
                this.orderInfoArr = []
            },
            t.getBagOrder = function(t) {
                var e = s.getFieldValueEx(t, "item_name");
                this.itemInfoArr = [];
                var e = e,
                i = s.getFieldValueEx(t, "order_time"),
                n = new Date(1e3 * i).toLocaleDateString();
                i = n;
                var o, r = s.getFieldValueEx(t, "order_id");
                switch (s.getFieldValueEx(t, "status")) {
                case 1:
                    o = a.getLanguage("130385")[1];
                    break;
                case 2:
                    o = a.getLanguage("130386")[1];
                    break;
                case 3:
                    o = a.getLanguage("130387")[1]
                }
                var c = {
                    itemName: e,
                    orderTime: i,
                    status: o,
                    orderId: r
                };
                this.orderInfoArr.push(c)
            },
            t.getItemName = function(t) {
                for (var e = 0; e < this.itemInfoArr.length; e++) if (s.getFieldValueEx(this.itemInfoArr[e], "itemTypeId") === t) {
                    var i = s.getFieldValueEx(this.itemInfoArr[e], "itemName");
                    return i
                }
            },
            t.getItemArr = function(t) {
                for (var e, i, n, o = s.getFieldValue("GiftShopListRespone", "shopList"), a = 0; a < o.length; a++) switch (n = s.getFieldValueEx(o[a], "type"), e = s.getFieldValueEx(o[a], "pngUrl"), i = this.getItemPngUrl(e), s.setFieldValueEx(o[a], "pngUrl", i), n) {
                case 1:
                    this.ordinaryItemInfo.push(o[a]);
                    break;
                case 3:
                    this.hotItemInfo.push(o[a])
                }
            },
            t.getPrizeRow = function(t) {
                if (t % 4 === 0) var e = t / 4 | 0;
                else var e = t / 4 + 1 | 0;
                return e
            },
            t.cleanPrizeArr = function() {
                this.ordinaryItemInfo = [],
                this.hotItemInfo = []
            },
            t.registerMsg = function() {
                i.registerEvent("orderInfoPush",
                function(t) {
                    for (var e = s.getFieldValue("OrderInfoRespone", "order_list"), i = 0; i < e.length; i++) {
                        var o = s.getFieldValueEx(e[i], "order_id");
                        if (o === t.order_id) {
                            s.setFieldValueEx(e[i], "order_time", t.order_time),
                            s.getFieldValueEx(e[i], "item_name", t.item_name),
                            s.setFieldValueEx(e[i], "status", t.status);
                            break
                        }
                    }
                    n.dispatchEvent("updateOrderInBag")
                }.bind(this)),
                i.registerEvent("UseTelFareItemRespone",
                function(t) {
                    this.orderInfoRequest(),
                    n.dispatchEvent("showOrderInfo")
                }.bind(this)),
                i.registerEvent("OrderInfoRespone",
                function(t) {
                    s.getFieldValue("OrderInfoRespone", "order_list");
                    n.dispatchEvent("updateOrderInBag")
                }.bind(this)),
                i.registerEvent("BuyObjectItemRespone",
                function(t) {
                    n.dispatchEvent("buyObjectItem")
                }.bind(this)),
                i.registerEvent("GetItemInfoResponse",
                function(t) {
                    var e = s.getFieldValueEx(t, "item");
                    0 !== e.length && e.toString() !== this.itemInfo.toString() && (this.itemInfo = [], this.updateData(e))
                }.bind(this)),
                i.registerEvent("ItemInfoPush",
                function(t) {
                    var e = s.getFieldValueEx(t, "item");
                    if (0 !== e.length && e.toString() !== this.itemInfo.toString()) for (var i = 0; i < this.itemInfo.length; i++) for (var o = 0; o < e.length; o++) if (e[o].itemID === this.itemInfo[i].id && (this.itemInfo[i].num = e[o].num, 0 === e[o].num)) return this.itemInfo.splice(i, 1),
                    void n.dispatchEvent("updateItemInBag")
                }.bind(this)),
                i.registerEvent("UseTrumpetResponse",
                function(t) {
                    n.dispatchEvent("getUseItemSucessCallBack", 20001)
                }.bind(this))
            },
            t.updateData = function(t) {
                for (var e = kf.require("logic.dict"), i = 0; i < t.length; i++) {
                    var s = t[i].itemID,
                    o = t[i].num;
                    if (o > 0) {
                        var a = e.getItemResPath(s),
                        r = e.getItemType(s),
                        c = {
                            id: s,
                            resPath: a,
                            type: r,
                            num: o
                        };
                        this.itemInfo.push(c)
                    }
                }
                n.dispatchEvent("updateItemInBag")
            },
            t.removeItemCount = function(t, e) {
                e = e || 1;
                for (var i = 0; i < this.itemInfo.length; i++) if (this.itemInfo[i].id == t) {
                    this.itemInfo[i].num = this.itemInfo[i].num - e;
                    break
                }
            },
            t.getItemCount = function(t) {
                for (var e = 0; e < this.itemInfo.length; e++) if (this.itemInfo[e].id == t) return this.itemInfo[e].num;
                return 0
            },
            t.getPayUrl = function(t, e, i) {
                var n = o.getUin();
                e = 100 * e;
                var s = window.clientConfig.channel,
                a = window.clientConfig.app_key,
                r = window.clientConfig.app_id,
                c = kf.require("util.md5").hex_md5(s + r + n + e + a),
                h = "channel=" + s + "&appid=" + r + "&app_uid=" + n + "&itemid=" + i + "&subject=" + t + "&amount=" + e + "&signtype=MD5&sign=" + c,
                l = window.clientConfig.payUrl + "?" + h;
                //window.location.href = l

                var openId = o.getOpenId();
                var payinfo = {
                    "amount" : e,
                    "subject" : t,
                    "channel" : s,
                    "appid" : r,
                    "app_uid" : n,
                    "extension" : openId,
                    "itemid" : i,
                    "signtype" : "MD5",
                    "sign" : c
                };
                try {
                    execPayItem(payinfo);
                } catch (e) {
                }
            },
            t
        },
        cc._RFpop()
    },
    {}],
    bag: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "39f22yifcxEcY55+ENmf8MN", "bag"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                item: cc.Prefab,
                order: cc.Prefab,
                backpack: cc.Node,
                orderNode: cc.Node,
                bill: cc.Node,
                entity: cc.Node,
                horn: cc.Node,
                backpackLayout: cc.Node,
                orderLayout: cc.Node,
                backpackButtonEnable: cc.Button,
                btnGetSmsCode: cc.Node,
                entityAddress: cc.EditBox,
                entityAddressee: cc.EditBox,
                entityPhone: cc.EditBox,
                billPhone: cc.EditBox,
                billVerification: cc.EditBox,
                hornEditbox: cc.EditBox
            },
            onLoad: function() {
                this.canvas = cc.find("Canvas"),
                this.lang = kf.require("util.lang"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.protocol = kf.require("util.byteProtocol"),
                this.bagLogic = kf.require("logic.bag"),
                this.dictLogic = kf.require("logic.dict"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.buttonBackpackOn = this.node.getChildByName("button_backpack").getChildByName("backpackOn"),
                this.buttonOrderOn = this.node.getChildByName("button_order").getChildByName("orderOn"),
                this.canvas = cc.find("Canvas"),
                this.isCount = !1,
                this.registerEvent(),
                this.orderScrollContentWidth = this.orderLayout.getContentSize().width,
                this.orderScrollContentHeight = this.orderLayout.getContentSize().height
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerEvent: function() {
                this.registerHandler = [["updateOrderInBag", this.updateOrderInBag.bind(this)], ["showOrderInfo", this.showOrderInfo.bind(this)], ["clickItemInfo", this.clickItemInfo.bind(this)], ["updateItemInBag", this.updateItemInBag.bind(this)], ["getUseItemSucessCallBack", this.getUseItemSucessCallBack.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            init: function() {
                this.count = 180,
                this.bagLogic.orderInfoRequest(),
                this.backpackButton(),
                this.bagLogic.getItemInfoRequest()
            },
            clickItemInfo: function(t, e) {
                switch (this.clickItemId = t, this.clickItemTypeId = e, e) {
                case 2:
                    20001 === t && (this.backpack.active = !1, this.horn.active = !0, this.backpackButtonEnable.node.getComponent(cc.Button).interactable = !1);
                    break;
                case 3:
                    this.backpack.active = !1,
                    this.bill.active = !0,
                    this.bill.getChildByName("phone").getComponent(cc.Label).string = this.lang.get("phone"),
                    this.backpackButtonEnable.node.getComponent(cc.Button).interactable = !1,
                    this.bill.getChildByName("verification").active = !0,
                    this.bill.getChildByName("obtain").active = !0;
                    break;
                case 4:
                    this.backpack.active = !1,
                    this.bill.active = !0,
                    this.bill.getChildByName("phone").getComponent(cc.Label).string = this.lang.get("account"),
                    this.backpackButtonEnable.node.getComponent(cc.Button).interactable = !1,
                    this.bill.getChildByName("verification").active = !1,
                    this.bill.getChildByName("obtain").active = !1;
                    break;
                case 5:
                    this.backpack.active = !1,
                    this.entity.active = !0,
                    this.backpackButtonEnable.node.getComponent(cc.Button).interactable = !1
                }
            },
            updateOrder: function() {
                this.bagLogic.orderInfoRequest()
            },
            updateItemInBag: function() {
                if (this.deleteItem(), 0 === this.bagLogic.itemInfo.length) return this.backpack.getChildByName("noBackpack").active = !0,
                void(this.backpack.getChildByName("scrollView").active = !1);
                this.backpack.getChildByName("noBackpack").active = !1,
                this.backpack.getChildByName("scrollView").active = !0;
                for (var t = 0; t < this.bagLogic.itemInfo.length; t++) {
                    var e = cc.instantiate(this.item);
                    this.backpackLayout.addChild(e),
                    e.getComponent("bagItem").init(this.bagLogic.itemInfo[t])
                }
            },
            deleteItem: function() {
                this.backpackLayout.removeAllChildren()
            },
            updateOrderInBag: function() {
                if (this.bagLogic.updateBagOrder(), this.deleteOrder(), 0 === this.bagLogic.orderInfoArr.length) return this.orderNode.getChildByName("noOrder").active = !0,
                void(this.orderNode.getChildByName("scrollView").active = !1);
                this.orderNode.getChildByName("noOrder").active = !1,
                this.orderNode.getChildByName("scrollView").active = !0;
                for (var t = 0; t < this.bagLogic.orderInfoArr.length; t++) {
                    var e = cc.instantiate(this.order);
                    this.orderLayout.addChild(e),
                    e.getComponent("order").init(this.bagLogic.orderInfoArr[t])
                }
            },
            updateItemNum: function(t) {
                for (var e = 0; e < this.backpackLayout.children.length; e++) if (this.backpackLayout.children[e].itemId == t) {
                    var i = this.bagLogic.getItemCount(t);
                    this.backpackLayout.children[e].getChildByName("numLabel").getComponent(cc.Label).string = i;
                    break
                }
            },
            getUseItemSucessCallBack: function(t) {
                switch (this.bagLogic.removeItemCount(t), this.updateItemNum(t), t) {
                case 20001:
                    this.cancelHornButton()
                }
                this.closePopUp()
            },
            deleteOrder: function() {
                this.orderLayout.removeAllChildren()
            },
            closePopUp: function() {
                this.buttonManager.close(this.node.parent, this.node.name, !0),
                this.buttonBackpackOn.active = !0,
                this.buttonOrderOn.active = !1,
                this.backpack.active = !0,
                this.orderNode.active = !1,
                this.bill.active = !1,
                this.horn.active = !1,
                this.entity.active = !1,
                this.hornEditbox.string = ""
            },
            showOrderInfo: function() {
                this.clientEvent.dispatchEvent("showOkMessage", "130252", !0),
                this.orderButton(),
                this.buttonBackpackOn.active = !1,
                this.bill.active = !1,
                this.buttonOrderOn.active = !0,
                this.orderNode.active = !0,
                this.openBackpackButton()
            },
            sendHornButton: function() {
                var t = this.hornEditbox.string;
                this.hornEditbox.string = "",
                this.bagLogic.useTrumpetRequest(t)
            },
            cancelHornButton: function() {
                this.horn.active = !1,
                this.hornEditbox.string = "",
                this.backpackButton()
            },
            backpackButton: function() {
                this.buttonBackpackOn.active = !0,
                this.buttonOrderOn.active = !1,
                this.backpack.active = !0,
                this.orderNode.active = !1
            },
            orderButton: function() {
                this.buttonBackpackOn.active = !1,
                this.buttonOrderOn.active = !0,
                this.backpack.active = !1,
                this.orderNode.active = !0,
                this.bill.active = !1,
                this.entity.active = !1,
                this.horn.active = !1,
                this.hornEditbox.string = "",
                this.openBackpackButton()
            },
            billYesButton: function() {
                var t = this.billPhone.string,
                e = Number(this.billVerification.string);
                return 11 !== t.length && 3 == this.clickItemTypeId ? void this.clientEvent.dispatchEvent("showOkMessage", "130011", !0) : void(3 == this.clickItemTypeId && 0 === e.length || this.bagLogic.useTelFareItemRequest(this.clickItemId, this.clickItemTypeId, t, e))
            },
            billVerifyCodeButton: function() {
                var t = this.billPhone.string;
                return 11 !== t.length ? void this.clientEvent.dispatchEvent("showOkMessage", "130011", !0) : (this.bagLogic.verifyCodeRequest(t), this.clientEvent.dispatchEvent("showOkMessage", "130012", !0), this.isCount = !0, this.btnGetSmsCode.opacity = 180, this.btnGetSmsCode.getComponent(cc.Button).interactable = !1, this.getSmsCode = this.btnGetSmsCode.getChildByName("label").getComponent(cc.Label), void 0)
            },
            billNoButton: function() {
                this.bill.active = !1,
                this.backpack.active = !0,
                this.openBackpackButton()
            },
            entityYesButton: function() {
                var t = this.entityAddress.string,
                e = this.entityAddressee.string,
                i = this.entityPhone.string;
                return 11 !== i.length ? void this.clientEvent.dispatchEvent("showOkMessage", "130011", !0) : 0 === t.length ? void this.clientEvent.dispatchEvent("showOkMessage", "130103", !0) : 0 === e.length ? void this.clientEvent.dispatchEvent("showOkMessage", "130104", !0) : (this.bagLogic.useObjectItemRequest(this.clickItemId, this.clickItemTypeId, t, e, i), this.clientEvent.dispatchEvent("showOkMessage", "130253", !0), this.orderButton(), this.buttonBackpackOn.active = !1, this.entity.active = !1, this.buttonOrderOn.active = !0, this.orderNode.active = !0, void this.openBackpackButton())
            },
            entityNoButton: function() {
                this.entity.active = !1,
                this.backpack.active = !0,
                this.openBackpackButton()
            },
            openBackpackButton: function() {
                this.backpackButtonEnable.node.getComponent(cc.Button).interactable = !0
            },
            update: function(t) {
                this.isCount && (this.count -= t, this.getSmsCode.string = parseInt(this.count), this.count > 0 || (this.isCount = !1, this.btnGetSmsCode.opacity = 255, this.btnGetSmsCode.getComponent(cc.Button).interactable = !0, this.getSmsCode.string = "获取验证码", this.count = 180))
            }
        }),
        cc._RFpop()
    },
    {}],
    board: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "c1ac3h9dWNAU56VQRAmJ7/9", "board"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                type: 1
            },
            onLoad: function() {},
            onCollisionEnter: function(t, e) {
                if (0 === t.tag) {
                    var i = t.node.getRotation();
                    1 === this.type || 3 === this.type ? t.node.setRotation( - i) : t.node.setRotation(180 - i);
                    var n = t.node.getComponent("bullet");
                    n.redirect()
                }
            }
        }),
        cc._RFpop()
    },
    {}],
    broadcast: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "b289eRSr8hJUJKwauXgqvj+", "broadcast"),
        cc.Class({
            "extends": cc.Component,
            properties: {},
            onLoad: function() {
                this.dictLogic = kf.require("logic.dict"),
                this.hallLogic = kf.require("logic.hall"),
                this.node.getComponent(cc.Label).string = ""
            },
            init: function(t) {
                this.node.getComponent(cc.Label).string = t,
                this.node.getComponent(cc.Animation).play()
            },
            initData: function() {
                var t = this.hallLogic.getBroadcastString();
                this.hallLogic.getBroadcastCurrentPlayCount() < 0 ? void 0 === t && (t = "", this.node.parent.parent.active = !1) : (this.node.parent.parent.active = !0, this.init(t))
            },
            update: function(t) {
                var e = this.node.getComponent(cc.Animation).getAnimationState("broadcast").isPlaying;
                e || this.initData()
            }
        }),
        cc._RFpop()
    },
    {}],
    bullet: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "b6fa5qn2XFJ2bfHyKPVhJU1", "bullet"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                netPrefab: {
                    "default": null,
                    type: cc.Prefab
                },
                seat1Bullet: [cc.SpriteFrame],
                seat2Bullet: [cc.SpriteFrame],
                seat3Bullet: [cc.SpriteFrame],
                seat4Bullet: [cc.SpriteFrame],
                energyBullet: cc.SpriteFrame
            },
            onLoad: function() {
                this.roomLogic = kf.require("logic.room"),
                this.loginLogic = kf.require("logic.login"),
                this.collider = this.node.getComponent(cc.Collider),
                this.persistNode = cc.find("persistNode").getComponent("persistNode"),
                this.bulletSprite = this.node.getComponent(cc.Sprite)
            },
            init: function(t) {
                this.seatId = t.id,
                this.uin = t.uin,
                this.bulletOrder = t.bulletOrder,
                this.gunIndex = t.gunIndex,
                this.isEnergyBullet = t.isEnergyGun,
                this.collider.enabled = !0,
                this.fishScene = cc.find("Canvas").getComponent("fishScene"),
                this.isEnergyBullet ? this.bulletSprite.spriteFrame = this.energyBullet: this.bulletSprite.spriteFrame = this["seat" + this.seatId + "Bullet"][this.gunIndex],
                this.loginLogic.isPlayer(this.uin) && this.roomLogic.shootRequest(t.previous, this.bulletOrder),
                this.persistNode.playAudio("fireAudio")
            },
            redirect: function() {
                this.node.stopAllActions();
                var t = this.node.position,
                e = cc.p(t.x, t.y + 1500),
                i = cc.pRotateByAngle(e, t, cc.degreesToRadians( - this.node.rotation));
                this.node.runAction(cc.moveTo(3, i))
            },
            onCollisionEnter: function(t, e) {
                1 === t.tag && this.collider.enabled && (this.collider.enabled = !1, this.fishScene.createNet({
                    seadId: this.seatId,
                    uin: this.uin,
                    bulletOrder: this.bulletOrder,
                    position: this.node.position
                }), this.scheduleOnce(function() {
                    this.node.stopAllActions(),
                    this.loginLogic.isPlayer(this.uin) && this.roomLogic.bulletCalculate( - 1),
                    this.roomLogic.putInPool(this.node.name, this.node)
                },
                0))
            }
        }),
        cc._RFpop()
    },
    {}],
    buttonManager: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "b7649zFh1ZKi5qtzaA7hSrw", "buttonManager"),
        window.util.buttonManager = function() {
            var t = {},
            e = kf.require("logic.hall"),
            i = kf.require("basic.clientEvent");
            return t.init = function() {},
            t.open = function(t, i, n) {
                if (e.canTouchButton) {
                    var s = t.getChildByName(i);
                    if (s) s.active = !0;
                    else {
                        if (!n) return;
                        s = cc.instantiate(n),
                        t.addChild(s)
                    }
                    var o = s.getComponent(cc.Animation);
                    o && (o.play().wrapMode = cc.WrapMode.Normal),
                    e.setButtonTouch(!1),
                    s.getComponent(i) && s.getComponent(i).init(),
                    setTimeout(function() {
                        e.setButtonTouch(!0)
                    },
                    200)
                }
            },
            t.close = function(t, e, n) {
                n && i.dispatchEvent("hallPopUp");
                var s = t.getChildByName(e),
                o = s.getComponent(cc.Animation);
                o ? (o.play().wrapMode = cc.WrapMode.Reverse, setTimeout(function() {
                    s.active = !1
                },
                200)) : s.active = !1
            },
            t
        },
        cc._RFpop()
    },
    {}],
    byteProtocol: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "fbfc9dHFLdLUrzs4vvG7LgG", "byteProtocol");
        var n = t("long");
        window.util.byteProtocol1 = function() {
            var t = kf.require("basic.clientEvent"),
            e = {
                init: function() {
                    this.checkCode = n.fromString("012D39BB01337825", !0, 16),
                    this.offset = 0,
                    this.litteEndian = !1,
                    this.maxByte = 1024,
                    this.buffer = new ArrayBuffer(this.maxByte),
                    this.revBuffer,
                    this.revOffset = 0,
                    this.crcTable = "0000000000000000 42F0E1EBA9EA3693 85E1C3D753D46D26 C711223CFA3E5BB5 493366450E42ECDF 0BC387AEA7A8DA4C CCD2A5925D9681F9 8E224479F47CB76A 9266CC8A1C85D9BE D0962D61B56FEF2D 17870F5D4F51B498 5577EEB6E6BB820B DB55AACF12C73561 99A54B24BB2D03F2 5EB4691841135847 1C4488F3E8F96ED4 663D78FF90E185EF 24CD9914390BB37C E3DCBB28C335E8C9 A12C5AC36ADFDE5A 2F0E1EBA9EA36930 6DFEFF5137495FA3 AAEFDD6DCD770416 E81F3C86649D3285 F45BB4758C645C51 B6AB559E258E6AC2 71BA77A2DFB03177 334A9649765A07E4 BD68D2308226B08E FF9833DB2BCC861D 388911E7D1F2DDA8 7A79F00C7818EB3B CC7AF1FF21C30BDE 8E8A101488293D4D 499B3228721766F8 0B6BD3C3DBFD506B 854997BA2F81E701 C7B97651866BD192 00A8546D7C558A27 4258B586D5BFBCB4 5E1C3D753D46D260 1CECDC9E94ACE4F3 DBFDFEA26E92BF46 990D1F49C77889D5 172F5B3033043EBF 55DFBADB9AEE082C 92CE98E760D05399 D03E790CC93A650A AA478900B1228E31 E8B768EB18C8B8A2 2FA64AD7E2F6E317 6D56AB3C4B1CD584 E374EF45BF6062EE A1840EAE168A547D 66952C92ECB40FC8 2465CD79455E395B 3821458AADA7578F 7AD1A461044D611C BDC0865DFE733AA9 FF3067B657990C3A 711223CFA3E5BB50 33E2C2240A0F8DC3 F4F3E018F031D676 B60301F359DBE0E5 DA050215EA6C212F 98F5E3FE438617BC 5FE4C1C2B9B84C09 1D14202910527A9A 93366450E42ECDF0 D1C685BB4DC4FB63 16D7A787B7FAA0D6 5427466C1E109645 4863CE9FF6E9F891 0A932F745F03CE02 CD820D48A53D95B7 8F72ECA30CD7A324 0150A8DAF8AB144E 43A04931514122DD 84B16B0DAB7F7968 C6418AE602954FFB BC387AEA7A8DA4C0 FEC89B01D3679253 39D9B93D2959C9E6 7B2958D680B3FF75 F50B1CAF74CF481F B7FBFD44DD257E8C 70EADF78271B2539 321A3E938EF113AA 2E5EB66066087D7E 6CAE578BCFE24BED ABBF75B735DC1058 E94F945C9C3626CB 676DD025684A91A1 259D31CEC1A0A732 E28C13F23B9EFC87 A07CF2199274CA14 167FF3EACBAF2AF1 548F120162451C62 939E303D987B47D7 D16ED1D631917144 5F4C95AFC5EDC62E 1DBC74446C07F0BD DAAD56789639AB08 985DB7933FD39D9B 84193F60D72AF34F C6E9DE8B7EC0C5DC 01F8FCB784FE9E69 43081D5C2D14A8FA CD2A5925D9681F90 8FDAB8CE70822903 48CB9AF28ABC72B6 0A3B7B1923564425 70428B155B4EAF1E 32B26AFEF2A4998D F5A348C2089AC238 B753A929A170F4AB 3971ED50550C43C1 7B810CBBFCE67552 BC902E8706D82EE7 FE60CF6CAF321874 E224479F47CB76A0 A0D4A674EE214033 67C58448141F1B86 253565A3BDF52D15 AB1721DA49899A7F E9E7C031E063ACEC 2EF6E20D1A5DF759 6C0603E6B3B7C1CA F6FAE5C07D3274CD B40A042BD4D8425E 731B26172EE619EB 31EBC7FC870C2F78 BFC9838573709812 FD39626EDA9AAE81 3A28405220A4F534 78D8A1B9894EC3A7 649C294A61B7AD73 266CC8A1C85D9BE0 E17DEA9D3263C055 A38D0B769B89F6C6 2DAF4F0F6FF541AC 6F5FAEE4C61F773F A84E8CD83C212C8A EABE6D3395CB1A19 90C79D3FEDD3F122 D2377CD44439C7B1 15265EE8BE079C04 57D6BF0317EDAA97 D9F4FB7AE3911DFD 9B041A914A7B2B6E 5C1538ADB04570DB 1EE5D94619AF4648 02A151B5F156289C 4051B05E58BC1E0F 87409262A28245BA C5B073890B687329 4B9237F0FF14C443 0962D61B56FEF2D0 CE73F427ACC0A965 8C8315CC052A9FF6 3A80143F5CF17F13 7870F5D4F51B4980 BF61D7E80F251235 FD913603A6CF24A6 73B3727A52B393CC 31439391FB59A55F F652B1AD0167FEEA B4A25046A88DC879 A8E6D8B54074A6AD EA16395EE99E903E 2D071B6213A0CB8B 6FF7FA89BA4AFD18 E1D5BEF04E364A72 A3255F1BE7DC7CE1 64347D271DE22754 26C49CCCB40811C7 5CBD6CC0CC10FAFC 1E4D8D2B65FACC6F D95CAF179FC497DA 9BAC4EFC362EA149 158E0A85C2521623 577EEB6E6BB820B0 906FC95291867B05 D29F28B9386C4D96 CEDBA04AD0952342 8C2B41A1797F15D1 4B3A639D83414E64 09CA82762AAB78F7 87E8C60FDED7CF9D C51827E4773DF90E 020905D88D03A2BB 40F9E43324E99428 2CFFE7D5975E55E2 6E0F063E3EB46371 A91E2402C48A38C4 EBEEC5E96D600E57 65CC8190991CB93D 273C607B30F68FAE E02D4247CAC8D41B A2DDA3AC6322E288 BE992B5F8BDB8C5C FC69CAB42231BACF 3B78E888D80FE17A 7988096371E5D7E9 F7AA4D1A85996083 B55AACF12C735610 724B8ECDD64D0DA5 30BB6F267FA73B36 4AC29F2A07BFD00D 08327EC1AE55E69E CF235CFD546BBD2B 8DD3BD16FD818BB8 03F1F96F09FD3CD2 41011884A0170A41 86103AB85A2951F4 C4E0DB53F3C36767 D8A453A01B3A09B3 9A54B24BB2D03F20 5D45907748EE6495 1FB5719CE1045206 919735E51578E56C D367D40EBC92D3FF 1476F63246AC884A 568617D9EF46BED9 E085162AB69D5E3C A275F7C11F7768AF 6564D5FDE549331A 279434164CA30589 A9B6706FB8DFB2E3 EB46918411358470 2C57B3B8EB0BDFC5 6EA7525342E1E956 72E3DAA0AA188782 30133B4B03F2B111 F7021977F9CCEAA4 B5F2F89C5026DC37 3BD0BCE5A45A6B5D 79205D0E0DB05DCE BE317F32F78E067B FCC19ED95E6430E8 86B86ED5267CDBD3 C4488F3E8F96ED40 0359AD0275A8B6F5 41A94CE9DC428066 CF8B0890283E370C 8D7BE97B81D4019F 4A6ACB477BEA5A2A 089A2AACD2006CB9 14DEA25F3AF9026D 562E43B4931334FE 913F6188692D6F4B D3CF8063C0C759D8 5DEDC41A34BBEEB2 1F1D25F19D51D821 D80C07CD676F8394 9AFCE626CE85B507",
                    this.protoHeadName = "BaseRequest",
                    this.protoHeartBeat = "Heartbeat",
                    this.protoRoomTable = "RoomTableRespone";
                    var e = function(e, i) {
                        window.g_xxtea && (i = window.g_xxtea.xxtea_decrypt(i));
                        var n = kf.loadXMLStr(i);
                        this.protoInfo = kf.xmlToJsonEx(n).metainfo,
                        this.protoInfo.struct[this.protoHeadName] = [{
                            name: "data_len",
                            type: "uint32_t"
                        },
                        {
                            name: "protocol_id",
                            type: "uint32_t"
                        },
                        {
                            name: "check_data",
                            type: "uint64_t"
                        }],
                        this.protoInfo.protocol[this.protoHeadName] = {
                            name: this.protoHeadName,
                            id: "100000",
                            define: "BASEREQUEST",
                            description: "包头定义"
                        },
                        this.protoInfo.protocol[this.protoHeartBeat] = {
                            name: this.protoHeartBeat,
                            id: "3",
                            define: "HEARTBEAT",
                            description: "心跳包"
                        },
                        this.protoInfo.struct[this.protoRoomTable] = [{
                            name: "TableArray",
                            type: "vector",
                            vector_type: "TableArray"
                        }],
                        this.protoInfo.protocol[this.protoRoomTable] = {
                            name: this.protoRoomTable,
                            id: "110305",
                            define: "ROOMTABLERESPONE",
                            description: "获取房间桌⼦列表应⽤"
                        },
                        this.protoInfo.vector_type.TableArray = [{
                            name: "tableid",
                            type: "uint16_t"
                        },
                        {
                            name: "PlayerInfo",
                            type: "vector",
                            vector_type: "PlayerInfo"
                        }],
                        this.protoInfo.vector_type.PlayerInfo = [{
                            name: "nick",
                            type: "string"
                        },
                        {
                            name: "coin",
                            type: "uint32_t"
                        },
                        {
                            name: "seatId",
                            type: "uint8_t"
                        }],
                        t.dispatchEvent("preloadFinish", "byteProtocol")
                    }.bind(this);
                    cc.loader.loadRes("struct", e)
                },
                decode: function(t) {
                    var e = this.parseProto(t),
                    i = kf.clone(this.getProtocol(e));
                    return [e, i]
                },
                encode: function(t, e) {
                    return this.generateProto(t, e)
                },
                generateProto: function(t, e) {
                    this.offset = 0;
                    var i = [this.buffer.byteLength, this.getIdByName(t), this.checkCode];
                    this.serialData(this.protoHeadName, i, !1),
                    this.serialData(t, e, !1);
                    var n = new DataView(this.buffer, 0);
                    n.setUint32(0, this.offset);
                    var s = this.CRC64(new Uint8Array(this.buffer, 0, this.offset)),
                    o = new DataView(this.buffer, 8);
                    return o.setUint32(4, s.getLowBitsUnsigned(), this.litteEndian),
                    o.setUint32(0, s.getHighBitsUnsigned(), this.litteEndian),
                    new Uint8Array(this.buffer, 0, this.offset)
                },
                serialData: function(t, e, i) {
                    var n;
                    if (n = i ? this.protoInfo.vector_type[t] : this.protoInfo.struct[t], void 0 !== n) if (i) for (var s = 0; s < e.length; s++) for (var o = 0; o < n.length; o++) {
                        var a = n[o];
                        this.serialField(a, e[s])
                    } else for (var o = 0; o < n.length; o++) {
                        var a = n[o];
                        this.serialField(a, e[o])
                    }
                },
                serialField: function(t, e) {
                    if (! (this.offset >= this.maxByte)) {
                        var i = 0,
                        n = new DataView(this.buffer, this.offset);
                        switch (t.type) {
                        case "string":
                            "string" != typeof e && (e += ""),
                            e = kf.writeUTF(e);
                            for (var s = e.length,
                            o = 0; o < s; o++) n.setUint8(o, e[o]);
                            i += s;
                            break;
                        case "int8_t":
                            i = 1,
                            n.setInt8(0, e);
                            break;
                        case "uint8_t":
                            i = 1,
                            n.setUint8(0, e);
                            break;
                        case "int16_t":
                            i = 2,
                            n.setInt16(0, e, this.litteEndian);
                            break;
                        case "uint16_t":
                            i = 2,
                            n.setUint16(0, e, this.litteEndian);
                            break;
                        case "int32_t":
                            i = 4,
                            n.setInt32(0, e, this.litteEndian);
                            break;
                        case "uint32_t":
                            i = 4,
                            n.setUint32(0, e, this.litteEndian);
                            break;
                        case "int64_t":
                            i = 8,
                            n.setInt32(0, e.getHighBits(), this.litteEndian),
                            n.setInt32(4, e.getLowBits(), this.litteEndian);
                            break;
                        case "uint64_t":
                            i = 8,
                            n.setUint32(0, e.getHighBitsUnsigned(), this.litteEndian),
                            n.setUint32(4, e.getLowBitsUnsigned(), this.litteEndian);
                            break;
                        case "vector":
                            var s = e.length;
                            n.setUint32(0, s, this.litteEndian),
                            this.offset += 4,
                            this.serialData(t.vector_type, e, !0)
                        }
                        return this.offset += i,
                        n
                    }
                },
                parseProto: function(t) {
                    this.revBuffer = t,
                    this.revOffset = 0,
                    this.unserialData(this.protoHeadName);
                    var e = this.protoInfo.struct[this.protoHeadName][1].value,
                    i = this.getNameById(e.toString());
                    return this.unserialData(i),
                    i
                },
                unserialData: function(t, e) {
                    var i;
                    if (i = e ? this.protoInfo.vector_type[t] : this.protoInfo.struct[t], void 0 !== i) for (var n = 0; n < i.length; n++) {
                        var s = i[n];
                        s.value = this.parseField(s)
                    }
                },
                parseField: function(t) {
                    var e = 0,
                    i = 0,
                    s = new DataView(this.revBuffer, this.revOffset);
                    switch (t.type) {
                    case "string":
                        i = 2;
                        var o = s.getUint16(0);
                        s = new Uint8Array(this.revBuffer, this.revOffset + i, o),
                        e = kf.utf8ByteToUnicodeStr(s),
                        i += o;
                        break;
                    case "int8_t":
                        i = 1,
                        e = s.getInt8(0);
                        break;
                    case "uint8_t":
                        i = 1,
                        e = s.getUint8(0);
                        break;
                    case "int16_t":
                        i = 2,
                        e = s.getInt16(0, this.litteEndian);
                        break;
                    case "uint16_t":
                        i = 2,
                        e = s.getUint16(0, this.litteEndian);
                        break;
                    case "int32_t":
                        i = 4,
                        e = s.getInt32(0, this.litteEndian);
                        break;
                    case "uint32_t":
                        i = 4,
                        e = s.getUint32(0, this.litteEndian);
                        break;
                    case "int64_t":
                        i = 8,
                        e = n.fromBits(s.getInt32(4, this.litteEndian), s.getInt32(0, this.litteEndian)).toNumber();
                        break;
                    case "uint64_t":
                        i = 8,
                        e = n.fromBits(s.getUint32(4, this.litteEndian), s.getUint32(0, this.litteEndian), !0).toNumber();
                        break;
                    case "vector":
                        var a = s.getUint32(0);
                        this.revOffset += 4,
                        t.value = [];
                        for (var r = 0; r < a; r++) {
                            this.unserialData(t.vector_type, !0);
                            var c = kf.clone(this.protoInfo.vector_type[t.vector_type]);
                            t.value.push(c)
                        }
                        e = t.value
                    }
                    return this.revOffset += i,
                    e
                },
                CRC64: function(t) {
                    for (var e = n.MAX_UNSIGNED_VALUE,
                    i = 0,
                    s = 0,
                    o = 0,
                    a = t.length; o < a; o++) i = 255 & e.shiftRightUnsigned(56).xor(t[o]),
                    s = this.crcTable.substr(17 * i, 16),
                    e = e.shiftLeft(8).xor(n.fromString(s, !0, 16));
                    return e.xor(n.MAX_UNSIGNED_VALUE)
                },
                getIdByName: function(t) {
                    var e = void 0,
                    i = this.protoInfo.protocol[t];
                    return void 0 !== i && (e = i.id),
                    e
                },
                getNameById: function(t) {
                    var e = void 0,
                    i = this.protoInfo.protocol;
                    for (var n in i) if (i.hasOwnProperty(n) && i[n].id === t) {
                        e = i[n].name;
                        break
                    }
                    return e
                },
                getProtocol: function(t) {
                    return this.protoInfo.struct[t]
                },
                getFieldValue: function(t, e) {
                    var i = void 0,
                    n = this.getProtocol(t);
                    return void 0 === n ? i: this.getFieldValueEx(n, e)
                },
                getFieldValueEx: function(t, e) {
                    for (var i = void 0,
                    n = 0; n < t.length; n++) {
                        var s = t[n];
                        if (s.name === e) {
                            i = s.value;
                            break
                        }
                    }
                    return i
                },
                getFieldValueInObj: function(t, e) {
                    var i = void 0;
                    for (var n in t) if (n === e) {
                        i = t[n];
                        break
                    }
                    return i
                },
                setFieldValue: function(t, e, i) {
                    var n = this.getProtocol(t);
                    return void 0 === n ? i: void this.setFieldValueEx(n, e, i)
                },
                setFieldValueEx: function(t, e, i) {
                    for (var n = 0; n < t.length; n++) {
                        var s = t[n];
                        if (s.name === e) {
                            s.value = i;
                            break
                        }
                    }
                }
            };
            return e
        },
        cc._RFpop()
    },
    {
        "long": "long"
    }],
    caustics: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "9818bT89sNAzqAYBPe+ML3v", "caustics"),
        cc.Class({
            "extends": cc.Component,
            properties: {},
            onLoad: function() {
                this.node.getComponent(cc.Sprite).spriteFrame.getTexture().setAliasTexParameters()
            }
        }),
        cc._RFpop()
    },
    {}],
    challengeRank: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "4de5cO3DKlKc6a1veIc1zYA", "challengeRank"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                icon: [cc.SpriteFrame]
            },
            onLoad: function() {
                this.dictLogic = kf.require("logic.dict"),
                this.loginLogic = kf.require("logic.login"),
                this.roomLogic = kf.require("logic.room"),
                this.protocol = kf.require("util.byteProtocol"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.richlabel = kf.require("util.richlabel");
                for (var t = 1; t <= 5; t++) this["ranking" + t] = this.node.getChildByName("ranking" + t),
                this["ranking" + t + "Num"] = this["ranking" + t].getChildByName("number").getComponent(cc.Label),
                this["ranking" + t + "Icon"] = this["ranking" + t].getChildByName("rankNum").getComponent(cc.Sprite),
                this["ranking" + t + "IsMe"] = this["ranking" + t].getChildByName("Windows_Rank01_Red"),
                this["ranking" + t + "Flash"] = this["ranking" + t].getChildByName("Windows_Rank01_Red").getChildByName("flash"),
                this["ranking" + t + "ArrowUp"] = this["ranking" + t].getChildByName("Arrow_Up");
                this.timeCountDown = this.node.getChildByName("time").getChildByName("countDown").getComponent(cc.Label),
                this.endSprite = this.node.getChildByName("end"),
                this.registerEvent(),
                this.schedule(this.challengeDynamicRankRequest, 3),
                this.timeCountDown.node.color = cc.Color.GREEN,
                this.afterConnection = !1,
                this.duration = this.roomLogic.duration,
                this.protocol.getFieldValue("protoChallengeStatusNotify", "status") || (this.afterConnection = !0)
            },
            onDestroy: function() {
                this.unregisterEvent(),
                this.unschedule(this.challengeDynamicRankRequest),
                this.unschedule(this.countDownTime)
            },
            registerEvent: function() {
                this.registerHandler = [["showChallengeDynamicRank", this.showChallengeDynamicRank.bind(this)], ["challengeStart", this.resetCountDown.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            challengeDynamicRankRequest: function() {
                if (void 0 !== this.roomLogic.scheduleId) {
                    var t = this.roomLogic.roomId,
                    e = this.roomLogic.scheduleId;
                    this.roomLogic.challengeDynamicRankRequest(t, e)
                }
            },
            update: function(t) {
                if (void 0 !== this.duration) {
                    this.duration -= t;
                    var e = this.richlabel.countDownTime(parseInt(this.duration));
                    if (this.timeCountDown.string = e, !this.endSprite.active) return this.afterConnection ? void(this.duration < 30 && (this.endSprite.active = !0, this.timeCountDown.node.color = cc.Color.RED)) : void(this.protocol.getFieldValue("protoChallengeStatusNotify", "status") && 5 === this.protocol.getFieldValue("protoChallengeStatusNotify", "status") && (this.duration < 30 && (this.endSprite.active = !0, this.timeCountDown.node.color = cc.Color.RED), this.duration < 0 && (this.duration = 0)))
                }
            },
            showChallengeDynamicRank: function() {
                for (var t = this.protocol.getFieldValue("protoChallengeDynamicRankResponse", "vecRank"), e = [], i = 0; i < t.length; i++) {
                    var n = this.protocol.getFieldValueEx(t[i], "rank");
                    e.push(n)
                }
                for (i = 0; i < e.length; i++) for (var s = 0; s < e.length - 1 - i; s++) if (e[s] > e[s + 1]) {
                    var o = e[s + 1];
                    e[s + 1] = e[s],
                    e[s] = o,
                    o = t[s + 1],
                    t[s + 1] = t[s],
                    t[s] = o
                }
                for (i = 0; i < t.length; i++) {
                    var a = i + 1,
                    r = this.protocol.getFieldValueEx(t[i], "rank");
                    this["ranking" + a + "Num"].string = this.protocol.getFieldValueEx(t[i], "score"),
                    this["ranking" + a + "Icon"].spriteFrame = this.icon[r - 1],
                    this["ranking" + a + "IsMe"].active = !1,
                    this["ranking" + a + "Flash"].active = !1,
                    this["ranking" + a + "ArrowUp"].active = !1;
                    var c = this.protocol.getFieldValueEx(t[i], "uin");
                    this.loginLogic.isPlayer(c) && (this["ranking" + a + "IsMe"].active = !0, this["ranking" + a + "Flash"].active = !0, r < this.oldRanking && (this["ranking" + a + "ArrowUp"].active = !0, this["ranking" + a + "ArrowUp"].getComponent(cc.Animation).play()), this.oldRanking = r)
                }
            },
            resetCountDown: function() {
                this.duration = this.roomLogic.duration
            }
        }),
        cc._RFpop()
    },
    {}],
    clientEvent: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "9d062DIbblBwJcr9g05w5/W", "clientEvent"),
        window.basic.clientEvent = function() {
            var t = kf.require("basic.eventListener"),
            e = {},
            i = ["novicePacksPopUp", "shopPopUp", "rewardDataSuccess", "closeMessage", "useGiftCodeSuccess", "popUpSuccess", "getActivityListSuccess", "getActivityDataSuccess", "RuleOperateActivitySuccess", "getActivityRewardSuccess", "inquireActivitySuccess", "userInformationSuccess", "accessCoinSuccess", "coinTopSuccess", "ticketTopSuccess", "registerAccSuccess", "getNickNumberSuccess", "getRealNameSuccess", "loginResponeSuccess", "LogoutSuccess", "getListSuccess", "resetPasswdSuccess", "findPawdGetCodeSuccess", "getHeadSuccess", "loginSuccess", "realNameSuccess", "FirstRoomScene", "UpdateRoomScene", "hitFishRespone", "RefreshRoomInterface", "updateGiftShop", "showItemDesc", "buyObjectItem", "GetItemInfoResponse", "clickItemInfo", "updateItemInBag", "showOrderInfo", "updateOrderInBag", "UpdateRoomScene", "intoGame", "OutGame", "showWaiting", "putFishInGame", "preloadFinish", "playerShoot", "changeGun", "playerQuit", "playerJoin", "updateWeaponScore", "getRoomTable", "pushTypeFish", "pushScreenFish", "newMailList", "readMail", "showBroadcast", "updateJoinButton", "changeSeatRespone", "changeSeat", "youHaveNewMail", "updateMoney", "updateTicket", "setFishSpeed", "refreshScene", "showGoldCoin", "showArenaRank", "setQueryDictReward", "showMessage", "showOkMessage", "showChallengeList", "showChallengeRank", "challengeSignUp", "challengeStart", "isChallenge", "showChallengeDynamicRank", "setAutomaticFire", "doubleRewardReady", "getEnergyGun", "showEnergyGun", "hideEnergyGun", "RechargeResponeEx", "showGeneralLabel", "closeGeneralLabel", "hallPopUp", "recordTime", "ticketExchangeSuccess", "setWeaponPause", "registerVerifySuccess", "showShopItem", "networkConnect", "showNotice", "updateButton", "showFreeGoldLabel", "showSignInMessage", "updateSignIn", "receiveRelief", "showDailyTaskInfo", "refreshLivenessInfo", "showRedPacketOrder", "getUseItemSucessCallBack", "oneKeyDrawMail", "oneKeyRemoveMail", "closeMail", "getUseDialSucessCallBack", "dialPop", "mailRewardReceived", "getUseDialFailCallBack", "dictPreloadFinish", "showBossFishIn", "afterLoadButtonConfig", "updateSignInGiftList", "getRandomItemList", "updateMainBtnState", "updateShopItems"];
            e.EVENT_TYPE = {};
            for (var n in i) {
                var s = i[n];
                e.EVENT_TYPE[s] = n
            }
            return e.init = function() {
                this.eventListener = t.create("multi")
            },
            e.registerEvent = function(t, i) {
                "string" == typeof t && (t = e.EVENT_TYPE[t], this.eventListener.register(t, i))
            },
            e.unregisterEvent = function(t, i) {
                "string" == typeof t && (t = e.EVENT_TYPE[t], this.eventListener.unregister(t, i))
            },
            e.dispatchEvent = function(t) {
                if ("string" == typeof t) {
                    var i = e.EVENT_TYPE[t];
                    if (!i) return void cc.error("please add the event into clientEvent.js");
                    var n = Array.prototype.slice.call(arguments);
                    n[0] = i,
                    this.eventListener.dispatch.apply(this.eventListener, n)
                }
            },
            e.bindEventListener = function(e) {
                this.eventListener = t.create("multi")
            },
            e
        },
        cc._RFpop()
    },
    {}],
    cn: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "101b4jH5ONGVKyMK1U6JARk", "cn"),
        window.word.cn = function() {
            var t = {};
            return t.raw = {
                smsResult0: "验证码发送成功",
                smsResult1: "验证码发送参数错误",
                smsResult2: "今日验证码发送次数超过上限",
                smsResult3: "验证码发送太频繁",
                smsResult4: "短信平台发送验证码失败",
                smsResult5: "手机号码错误",
                smsResult99: "未知错误",
                networkError: "您的网络状况不稳定，请检查网络状态",
                networkClose: "网络错误，已经断开连接，请重新登录",
                MBOK: "确认",
                MBCANCEL: "取消",
                MBMONEY: "去充值",
                MBINTO: "马上进入",
                MBRECEIVE: "领取",
                1001 : "账号已绑定",
                1002 : "账号名密码错",
                1003 : "账号不存在",
                1004 : "你的账号在其他设备登录",
                1005 : "版本不匹配",
                1006 : "来源不合法",
                1007 : "协议不合法",
                1008 : "服务器断开连接",
                1009 : "客户端主动断开",
                change: "确认修改?",
                changeOk: "修改成功",
                bulletTooMany: "子弹太多,请休息一会儿",
                noMoney: "金币不足,是否去充值?",
                noMoneyToRoom3: "金币不足3万,是否去充值?",
                noChangeSeat: "子弹正在飞行,请稍候再尝试更换座位哟",
                weixinLogin: "在微信中登录,不能切换账号！",
                buy: "是否购买?",
                buyMiss: "支付失败",
                errPrize: "兑换码格式错误，请输入正确兑换码",
                err2: "不在有效期的兑换码",
                err3: "礼包已被使用完毕",
                err4: "礼包渠道和用户渠道不一致",
                err5: "已领取过该类礼包",
                registerSuccess: "注册成功",
                inputVerification: "请输入验证码！",
                IPisDisable: "IP被禁用",
                deviceEmpty: "设备号为空",
                deviceDisabled: "设备被禁用",
                protocolNotCompatible: "协议版本号不兼容，或来源非法",
                systemError: "系统错误",
                hasRegistered: "该手机号已被注册",
                phoneError: "手机号码错误",
                phoneUse: "手机号已被使用",
                settingNotice: "尊敬的玩家，若想获得更好的游戏体验，请前往浏览器设置中将浏览器标识（UA）修改为电脑，点击确定将跳转至教程",
                getReward: "奖励已领取,请查收",
                livenessGiftTitle: "恭喜,成功领取活跃奖励!",
                livenessGift: "活跃宝箱奖励:",
                redPacketMinMoney: "红包金额最低不能低于200",
                redPacketMaxMoney: "红包金额最高不能高于玩家金币数",
                genRedPacketSuccess: "封装成功,您的红包码为:",
                drawRedPacketSuccess: "您打开红包成功领取到{0}金币",
                genRedPacket: "封装红包",
                drawRedPacket: "领取红包",
                noReceiveReward: "您还有奖励未领取,是否删除",
                removeAllMail: "删除成功",
                errAccount: "账号不存在",
                errPasswd: "账号或密码错误",
                errRepeat: "重复登录",
                changeAcc: "连接服务器...",
                errSys: "系统错误",
                errMorelogin: "登录太频繁",
                errPassTime: "认证超时，请重试",
                vip0: "会员0",
                vip1: "会员1",
                vip2: "会员2",
                vip3: "会员3",
                vip4: "会员4",
                vip5: "会员5",
                vip6: "会员6",
                vip7: "会员7",
                vip8: "会员8",
                vip9: "会员9",
                vip10: "会员10",
                notOpen: "未开放",
                signUp: "报名中",
                inGame: "进入",
                settlementIn: "结算中",
                close: "已结束",
                hasSignUp: "已报名",
                registrationCountDown: "报名倒计时",
                start: "即将开始",
                today: "今天",
                tomorrow: "明天",
                afterTomorrow: "后天",
                confirmUse: "确认消耗",
                signUpGame: "报名这场比赛吗？",
                errorcode0: "value",
                errorcode1: "当天已签到",
                errorcode2: "物品未找到",
                errorcode3: "物品不足",
                errorcode4: "奖励未找到",
                errorcode5: "座位上已经有人了",
                errorcode6: "金币不足",
                errorcode7: "奖券不足",
                errorcode8: "活跃值不够",
                errorcode9: "当天救济金领取次数已达最大",
                errorcode10: "任务未完成,不能领取奖励",
                errorcode11: "活动信息未找到",
                errorcode12: "排行榜奖励已领取过",
                errorcode13: "无效的红包码",
                errorcode14: "邮件不存在",
                errorcode15: "邮件物品已领取",
                errorcode16: "邮件中没有附件",
                errorcode17: "免费转盘已经用完",
                errorcode18: "兑换物品未找到",
                errorcode19: "兑换订单未找到",
                errorcode20: "物品不可兑换",
                errorcode21: "发送验证码失败",
                errorcode22: "无效的手机验证码",
                errorcode23: "你已被禁言",
                errorcode24: "您账号存在异常状态， 请联系GM",
                dialSucessTip: "恭喜获得了：",
                bossIn: "倍鱼要出现了做好准备!",
                phone: "手机：",
                account: "账号：",
                "11gold": "11万"
            },
            t
        },
        cc._RFpop()
    },
    {}],
    coinContent: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "0ea2fjdsYhG1JtADWmDT38C", "coinContent"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                coinItem: cc.Prefab
            },
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent"),
                this.hallLogic = kf.require("logic.hall"),
                this.canvas = cc.find("Canvas/hallScene/popup/activity"),
                this.noteData = [],
                this.complete_valueData = [],
                this.target_valueData = [],
                this.statusData = [],
                this.data_idData = [];
                for (var t = 0; t < this.hallLogic.acti_id.length; t++) 3003 === this.hallLogic.acti_id[t] && (this.noteData.push(this.hallLogic.note[t]), this.complete_valueData.push(this.hallLogic.complete_value[t]), this.target_valueData.push(this.hallLogic.target_value[t]), this.statusData.push(this.hallLogic.status[t]), this.data_idData.push(this.hallLogic.data_id[t]));
                this.contentPrefab()
            },
            start: function() {
                this.activityContentList()
            },
            contentPrefab: function() {
                for (var t = 0; t < this.noteData.length; t++) {
                    var e = cc.instantiate(this.coinItem);
                    this.node.addChild(e)
                }
                this.contentChild = this.node.children
            },
            activityContentList: function() {
                for (var t = 0; t < this.noteData.length; t++) {
                    var e = this.noteData[t],
                    i = this.complete_valueData[t],
                    n = this.target_valueData[t],
                    s = this.statusData[t],
                    o = this.data_idData[t],
                    a = this.canvas.getComponent("activity").rewardArr[1][t];
                    this.contentChild[t].getComponent("coinItem").coinInit(e, i, n, a, s, o)
                }
            }
        }),
        cc._RFpop()
    },
    {}],
    coinItem: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "9034aFawj9BhKqTcFRPF5gP", "coinItem"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                note: cc.Label,
                target_value: cc.Label,
                money: cc.Label,
                btnLabel: cc.Label,
                btnNode: cc.Node,
                yiLingQu: cc.Node
            },
            onLoad: function() {
                this.hallLogic = kf.require("logic.hall"),
                this.roomLogic = kf.require("logic.room"),
                this.Image_success = cc.find("Canvas/hallScene/popup/activity/Image_success")
            },
            coinInit: function(t, e, i, n, s, o) {
                switch (this.note.string = t, this.target_value.string = Math.floor(e / 1e4) + "万/" + i.replace("0:", "") / 1e4 + "万", n > 1e4 ? this.money.string = n / 1e4 + "万": this.money.string = n, e === i.replace("0:", "") && (this.btnLabel.string = "可领取"), s) {
                case 1:
                    this.btnLabel.string = "可领取";
                    break;
                case 2:
                    this.btnLabel.string = "去参加";
                    break;
                case 3:
                    this.btnNode.active = !1,
                    this.yiLingQu.active = !0
                }
                this.dataID = o;
                var a = this.node.getSiblingIndex();
                3 === s && this.node.setSiblingIndex(a + 10)
            },
            btnGo: function() {
                if ("可领取" === this.btnLabel.string) {
                    this.hallLogic.getActivityReward(3003, this.dataID),
                    this.btnNode.active = !1,
                    this.yiLingQu.active = !0,
                    this.Image_success.active = !0,
                    this.Image_success.getChildByName("jinbi").getChildByName("number").getComponent(cc.Label).string = this.money.string;
                    var t = this.node.getSiblingIndex();
                    this.node.setSiblingIndex(t + 10)
                } else this.roomLogic.fastIntoRoomRequest()
            }
        }),
        cc._RFpop()
    },
    {}],
    coin: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "6bccb3sdC5Lh5Q5JxIQutou", "coin"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                id: 0,
                speed: 1e3,
                coinSprite: [cc.SpriteFrame]
            },
            onLoad: function() {
                this.anim = this.node.getComponent(cc.Animation),
                this.loginLogic = kf.require("logic.login"),
                this.roomLogic = kf.require("logic.room"),
                this.persistNode = cc.find("persistNode").getComponent("persistNode")
            },
            init: function(t, e, i) {
                this.uin = t.uin;
                var n = "weapon" + e;
                this.targetPos = cc.find("Canvas/Game/" + n + "/Icon_Gold").position;
                var s = Math.abs(cc.pDistance(this.node.parent.position, this.targetPos));
                switch (this.duration = s / this.speed, this.node.getComponent(cc.Sprite).spriteFrame = this.coinSprite[i], i) {
                case 0:
                    this.anim.play("GoldJump");
                    break;
                case 1:
                    this.anim.play("SilverJump")
                }
            },
            onAnimFly: function() {
                this.persistNode.playAudio("coinAudio"),
                this.node.parent.runAction(cc.moveTo(this.duration, this.targetPos).easing(cc.easeSineInOut()))
            },
            onAnimCompleted: function(t) {
                this.roomLogic.putInPool(this.node.name, this.node.parent)
            }
        }),
        cc._RFpop()
    },
    {}],
    competRule: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "dc24c9kLnFH+ZQJPMjOO2yY", "competRule"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                rewardItem: cc.Prefab,
                topItem: cc.Prefab
            },
            onLoad: function() {
                this.dictLogic = kf.require("logic.dict"),
                this.hallLogic = kf.require("logic.hall"),
                this.protocol = kf.require("util.byteProtocol"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.richlabel = kf.require("util.richlabel"),
                this.canvas = cc.find("Canvas"),
                this.thisGame = this.node.getChildByName("thisGame"),
                this.awardButtonOn = this.thisGame.getChildByName("awardButton").getChildByName("buttonOn"),
                this.rankingButtonOn = this.thisGame.getChildByName("rankingButton").getChildByName("buttonOn"),
                this.overviewButtonOn = this.thisGame.getChildByName("overviewButton").getChildByName("buttonOn"),
                this.overviewMessage = this.thisGame.getChildByName("overviewMessage"),
                this.ranking = this.thisGame.getChildByName("ranking"),
                this.awardMessage = this.thisGame.getChildByName("awardMessage"),
                this.overviewMessageContent = this.overviewMessage.getChildByName("ScrollView").getChildByName("view").getChildByName("content"),
                this.gameNameLabel = this.overviewMessageContent.getChildByName("title").getComponent(cc.Label),
                this.useMoneyLabel = this.overviewMessageContent.getChildByName("fee").getChildByName("numerical").getComponent(cc.Label),
                this.gameTimeLabel = this.overviewMessageContent.getChildByName("time").getChildByName("temps").getComponent(cc.Label),
                this.peopleNumberLabel = this.overviewMessageContent.getChildByName("number").getChildByName("numerical").getComponent(cc.Label),
                this.ruleText = this.overviewMessageContent.getChildByName("rule").getChildByName("canon").getComponent(cc.RichText),
                this.rewardParentNode = this.awardMessage.getChildByName("rewardLayout"),
                this.rankParentNode = this.ranking.getChildByName("rankingScrollView").getChildByName("view").getChildByName("content"),
                this.noRanking = this.ranking.getChildByName("noRanking"),
                this.scrollContentHeight = this.rankParentNode.height,
                this.registerEvent()
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerEvent: function() {
                this.registerHandler = [["setQueryDictReward", this.setCompetReward.bind(this)], ["showChallengeRank", this.showChallengeRank.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            init: function(t) {
                this.roomId = t.roomId,
                this.scheduleId = t.scheduleId,
                this.roomInfo = this.dictLogic.getRoom(this.roomId),
                this.gameNameLabel.string = this.roomInfo.ROOM_NAME,
                this.useMoneyLabel.string = t.cost,
                this.gameTimeLabel.string = t.beginTime;
                var e = this.roomInfo.NUM_LIMIT.split(";"),
                i = e.join("~");
                this.peopleNumberLabel.string = i;
                var n = this.dictLogic.getLanguage(this.roomInfo.FIELD3_KEY)[1];
                n = this.richlabel.createRichLabelColor(n),
                this.ruleText.string = n
            },
            closePopUp: function() {
                var t = this.node.getComponent(cc.Animation).play();
                t.wrapMode = cc.WrapMode.Reverse,
                this.scheduleOnce(function() {
                    this.node.destroy(),
                    this.node.removeFromParent(),
                    this.unregisterEvent()
                },
                .5)
            },
            overviewButtonClick: function() {
                this.overviewButtonOn.active = !0,
                this.rankingButtonOn.active = !1,
                this.awardButtonOn.active = !1,
                this.overviewMessage.active = !0,
                this.ranking.active = !1,
                this.awardMessage.active = !1
            },
            rankingButtonClick: function() {
                this.overviewButtonOn.active = !1,
                this.rankingButtonOn.active = !0,
                this.awardButtonOn.active = !1,
                this.overviewMessage.active = !1,
                this.ranking.active = !0,
                this.awardMessage.active = !1,
                this.hallLogic.challengeRankRequest(this.roomId, this.scheduleId)
            },
            awardButtonClick: function() {
                this.overviewButtonOn.active = !1,
                this.rankingButtonOn.active = !1,
                this.awardButtonOn.active = !0,
                this.overviewMessage.active = !1,
                this.ranking.active = !1,
                this.awardMessage.active = !0,
                this.hallLogic.queryDictRewardRequest(this.roomId, this.hallLogic.REWARD_ID.NEWCHALLENGE)
            },
            setCompetReward: function() {
                var t = this.protocol.getFieldValue("protoQueryDictRewardResponse", "reqId");
                if (t === this.hallLogic.REWARD_ID.NEWCHALLENGE) {
                    this.deleteRewardItem();
                    for (var e = this.protocol.getFieldValue("protoQueryDictRewardResponse", "rewardList"), i = 0; i < e.length; i++) {
                        var n = cc.instantiate(this.rewardItem);
                        this.rewardParentNode.addChild(n),
                        n.getComponent("rewardItem").init(e[i], !1)
                    }
                }
            },
            deleteRewardItem: function() {
                this.rewardParentNode.removeAllChildren()
            },
            showChallengeRank: function() {
                this.deleteRankItem();
                for (var t = this.protocol.getFieldValue("protoChallengeRankResponse", "vecRank"), e = [], i = 0; i < t.length; i++) {
                    var n = this.protocol.getFieldValueEx(t[i], "rank");
                    e.push(n)
                }
                for (i = 0; i < e.length; i++) for (var s = 0; s < e.length - 1 - i; s++) if (e[s] > e[s + 1]) {
                    var o = e[s + 1];
                    e[s + 1] = e[s],
                    e[s] = o,
                    o = t[s + 1],
                    t[s + 1] = t[s],
                    t[s] = o
                }
                for (i = 0; i < t.length; i++) {
                    var a = cc.instantiate(this.topItem);
                    this.rankParentNode.addChild(a),
                    a.getComponent("topItem").arenaRankInit(t[i])
                }
                if (t.length > 5) {
                    var r = t.length - 5;
                    this.rankParentNode.height = r * this.topItem.data.getContentSize().height + this.scrollContentHeight
                } else this.rankParentNode.height = this.scrollContentHeight;
                0 === t.length ? this.noRanking.active = !0 : this.noRanking.active = !1
            },
            deleteRankItem: function() {
                this.rankParentNode.removeAllChildren()
            }
        }),
        cc._RFpop()
    },
    {}],
    competitiveChallenge: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "4cbd8mocWFCP60b9YxigrK9", "competitiveChallenge"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                gameItem: cc.Prefab
            },
            onLoad: function() {
                this.dictLogic = kf.require("logic.dict"),
                this.hallLogic = kf.require("logic.hall"),
                this.protocol = kf.require("util.byteProtocol"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.canvas = cc.find("Canvas"),
                this.challenge = this.node.getChildByName("challenge"),
                this.quickGameButtonOn = this.challenge.getChildByName("quickgameButton").getChildByName("buttonOn"),
                this.classicgameButtonOn = this.challenge.getChildByName("classicgameButton").getChildByName("buttonOn"),
                this.specialgameButtonOn = this.challenge.getChildByName("specialgameButton").getChildByName("buttonOn"),
                this.mygameButtonOn = this.challenge.getChildByName("mygameButton").getChildByName("buttonOn"),
                this.gameItemParentNode = this.challenge.getChildByName("scrollView").getChildByName("view").getChildByName("content"),
                this.scrollContentHeight = this.gameItemParentNode.height,
                this.registerEvent()
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerEvent: function() {
                this.registerHandler = [["showChallengeList", this.showChallengeList.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            init: function() {
                this.roomFlag = 0,
                this.quickGameButtonClick()
            },
            closePopUp: function() {
                this.buttonManager.close(this.node.parent, this.node.name, !0)
            },
            quickGameButtonClick: function() {
                this.quickGameButtonOn.active = !0,
                this.classicgameButtonOn.active = !1,
                this.specialgameButtonOn.active = !1,
                this.mygameButtonOn.active = !1,
                this.roomFlag = 7,
                this.hallLogic.challengeListRequest(this.roomFlag)
            },
            classicgameButtonClick: function() {
                this.quickGameButtonOn.active = !1,
                this.classicgameButtonOn.active = !0,
                this.specialgameButtonOn.active = !1,
                this.mygameButtonOn.active = !1,
                this.roomFlag = 8,
                this.hallLogic.challengeListRequest(this.roomFlag)
            },
            specialgameButtonClick: function() {
                this.quickGameButtonOn.active = !1,
                this.classicgameButtonOn.active = !1,
                this.specialgameButtonOn.active = !0,
                this.mygameButtonOn.active = !1,
                this.roomFlag = 9,
                this.hallLogic.challengeListRequest(this.roomFlag)
            },
            mygameButtonClick: function() {
                this.quickGameButtonOn.active = !1,
                this.classicgameButtonOn.active = !1,
                this.specialgameButtonOn.active = !1,
                this.mygameButtonOn.active = !0,
                this.roomFlag = 99,
                this.hallLogic.challengeListRequest(this.roomFlag)
            },
            showChallengeList: function() {
                for (var t = this.protocol.getFieldValue("protoChallengeListResponse", "roomFlag"), e = this.protocol.getFieldValue("protoChallengeListResponse", "roomList"), i = [], n = 0; n < e.length; n++) {
                    var s = this.protocol.getFieldValueEx(e[n], "duration");
                    i.push(s)
                }
                for (var n = 0; n < i.length; n++) for (var o = 0; o < i.length - 1 - n; o++) if (i[o] > i[o + 1]) {
                    var a = i[o + 1];
                    i[o + 1] = i[o],
                    i[o] = a,
                    a = e[o + 1],
                    e[o + 1] = e[o],
                    e[o] = a
                }
                for (var n = 0; n < e.length; n++) {
                    if (this.gameItemParentNode.children[n]) var r = this.gameItemParentNode.children[n];
                    else {
                        var r = cc.instantiate(this.gameItem);
                        this.gameItemParentNode.addChild(r)
                    }
                    r.getComponent("gameItem").init(e[n], t)
                }
                if (this.gameItemParentNode.children.length > e.length) for (var o = e.length; o < this.gameItemParentNode.children.length;) this.gameItemParentNode.children[o].destroy(),
                this.gameItemParentNode.removeChild(this.gameItemParentNode.children[o]);
                if (e.length > 2) {
                    var c = e.length - 2;
                    this.gameItemParentNode.height = c * this.gameItem.data.getContentSize().height + this.scrollContentHeight
                } else this.gameItemParentNode.height = this.scrollContentHeight
            }
        }),
        cc._RFpop()
    },
    {}],
    configuration: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "6a4aab5TMJLx58+CG32vGYt", "configuration"),
        window.util.configuration = function() {
            var t = {};
            return t.init = function() {
                this.jsonData = {
                    account: "",
                    password: "",
                    server_id: 1
                },
                this.path = this.getConfigPath(),
                this.key = window.g_xxtea ? window.clientConfig.cookieName + "encrypt": window.clientConfig.cookieName;
                var t;
                if (cc.sys.isNative) {
                    var e = jsb.fileUtils.getValueMapFromFile(this.path);
                    t = e[this.key]
                } else t = cc.sys.localStorage.getItem(this.key);
                window.g_xxtea && (t = window.g_xxtea.xxtea_decrypt(t)),
                t && t.length && (this.jsonData = JSON.parse(t))
            },
            t.setConfigData = function(t, e) {
                this.jsonData[t] = e
            },
            t.getConfigData = function(t) {
                return this.jsonData[t]
            },
            t.setAccountInfo = function(t, e) {
                this.jsonData.account = t,
                this.jsonData.password = e
            },
            t.setThirdInfo = function(t) {
                this.jsonData.thirdId = t
            },
            t.getAccount = function() {
                return this.jsonData.account
            },
            t.getPassword = function() {
                return this.jsonData.password
            },
            t.setOffLineInfo = function(t, e) {
                var i = kf.require("logic.time"),
                n = 24;
                if (e) if (this.jsonData.offLine) for (var s = 0; s < this.jsonData.offLine.length; s++) {
                    var o = i.now() - this.jsonData.offLine[s].offlineTime;
                    o > 36e5 * n && this.jsonData.offLine.splice(s--, 1)
                } else this.jsonData.offLine = [];
                for (var a = 0; a < t.timestamp.length; a++) {
                    var r = {};
                    r.timestamp = t.timestamp[a],
                    r.content = t.content[a],
                    r.offlineTime = t.offlineTime,
                    this.jsonData.offLine.push(r)
                }
                this.jsonData.offLine.sort(function(t, e) {
                    return e.timestamp - t.timestamp
                })
            },
            t.getOffLineInfo = function() {
                return this.jsonData.offLine
            },
            t.save = function() {
                var e = JSON.stringify(this.jsonData);
                if (window.g_xxtea && (e = window.g_xxtea.xxteaEncrypt(e)), !cc.sys.isNative) {
                    var i = cc.sys.localStorage;
                    return void i.setItem(this.key, e)
                }
                var n = {};
                n[this.key] = e,
                jsb.fileUtils.writeToFile(n, t.path)
            },
            t.getGuestAccount = function() {
                return this.jsonData.guest_account ? this.jsonData.guest_account: (this.jsonData.guest_account = "" + parseInt(1e3 * math.random(), 10), this.jsonData.guest_account)
            },
            t.setGuestAccount = function(t) {
                this.jsonData.guest_account = t
            },
            t.getConfigPath = function() {
                var t = cc.sys,
                e = "";
                return t === cc.sys.OS_WINDOWS ? e = "src/conf": t === cc.sys.OS_LINUX ? e = "./conf": cc.sys.isNative ? (e = jsb.fileUtils.getWritablePath(), e += "conf") : e = "src/conf",
                e
            },
            t
        },
        cc._RFpop()
    },
    {}],
    dailySign: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "4e747gxhbJAYKpXMYbq6yZR", "dailySign"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                contiLabel: cc.Label,
                day1: cc.Node,
                day2: cc.Node,
                day3: cc.Node,
                day4: cc.Node,
                day5: cc.Node,
                day6: cc.Node,
                day7: cc.Node,
                day1Reward: cc.Label,
                day2Reward: cc.Label,
                day3Reward: cc.Label,
                day4Reward: cc.Label,
                day5Reward: cc.Label,
                day6Reward: cc.Label,
                day7Reward: cc.Label
            },
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent"),
                this.protocol = kf.require("util.byteProtocol"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.richlabel = kf.require("util.richlabel"),
                this.dictLogic = kf.require("logic.dict"),
                this.taskLogic = kf.require("logic.task"),
                this.hallLogic = kf.require("logic.hall"),
                this.registerEvent()
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerEvent: function() {
                this.registerHandler = [["updateSignIn", this.updateSignIn.bind(this)], ["updateSignInGiftList", this.updateSignInGiftList.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            init: function() {
                this.taskLogic.querySignInRequest(),
                this.taskLogic.protoGetSignInGiftListRequest()
            },
            initSignInInfo: function() {
                for (var t = this.taskLogic.getSignInRewardInfo(), e = t.data, i = t.idxList, n = this.protocol.getFieldValue("LoginRespone", "vip"), s = 1; s <= 7; s++) {
                    var o = e[s - 1].coin;
                    if (n > 0) {
                        var a = this.dictLogic.getVipSign(n);
                        o = a / 100 * o + o
                    }
                    this["day" + s + "Reward"].string = o
                }
                if (i.length > 0) {
                    var r = kf.require("logic.dict").getItemResPath(10002);
                    cc.loader.loadRes(r,
                    function(t, e) {
                        for (var n = 0; n < i.length; n++) {
                            var s = new cc.SpriteFrame;
                            s.initWithTexture(e);
                            var o = this["day" + i[n]].parent.getChildByName("Input2");
                            o.getComponent(cc.Sprite).spriteFrame = s;
                            var a = 51 / o.getContentSize().width,
                            r = 54 / o.getContentSize().height;
                            o.setScale(a, r)
                        }
                    }.bind(this))
                }
            },
            updateSignIn: function() {
                var t = this.protocol.getFieldValue("protoQuerySignInRespone", "contiTimes");
                this.contiLabel.string = t + "天",
                t >= 1 && (this.day1.active = !0),
                t >= 2 && (this.day2.active = !0),
                t >= 3 && (this.day3.active = !0),
                t >= 4 && (this.day4.active = !0),
                t >= 5 && (this.day5.active = !0),
                t >= 6 && (this.day6.active = !0),
                t >= 7 && (this.day7.active = !0)
            },
            updateSignInGiftList: function(t) {
                cc.log("zq debug daily sign updateSignInGiftList"),
                this.dictLogic.Activity = t,
                this.initSignInInfo()
            },
            close: function() {
                this.buttonManager.close(this.node.parent, this.node.name, !1);
                var t = this.hallLogic.getIsLoginPopUp();
                if (t) {
                    var e = this.protocol.getFieldValue("QueryFlagInfoResponse", "flag");
                    if (e) {
                        var i = this.protocol.getFieldValue("QueryFlagInfoResponse", "value");
                        if (kf.require("logic.login").checkValue(4, e, i)) {
                            this.dictLogic.getButtonState(4)
                        }
                    }
                    this.hallLogic.setIsLoginPopUp(!1)
                }
            },
            signInButtonClick: function() {
                this.taskLogic.signInRequest()
            }
        }),
        cc._RFpop()
    },
    {}],
    dailyTaskItem: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "9de8fQzAWVFxb5KXm9dydSp", "dailyTaskItem"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                taskName: cc.Label,
                taskDesc: cc.Label,
                taskCompletion: cc.Label,
                taskLiveness: cc.Label,
                taskButton: cc.Node,
                taskHasDid: cc.Node
            },
            onLoad: function() {
                this.protocol = kf.require("util.byteProtocol"),
                this.taskLogic = kf.require("logic.task"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.roomLogic = kf.require("logic.room"),
                this.hallScene = cc.find("Canvas/hallScene"),
                this.dailyTaskParent = this.hallScene.getChildByName("popup")
            },
            init: function(t) {
                this.taskType = t.dictInfo.TARGET_TYPE - 0,
                this.taskName.string = t.dictInfo.NAME,
                this.taskDesc.string = t.dictInfo.NOTE,
                this.taskLiveness.string = "+" + t.dictInfo.LIVENESS;
                var e = this.protocol.getFieldValueEx(t.serverInfo, "status");
                1 === e ? (this.taskButton.active = !0, this.taskHasDid.active = !1) : 2 === e && (this.taskButton.active = !1, this.taskHasDid.active = !0);
                var i = kf.require("logic.dict").getLanguage("150063")[1] + t.dictInfo.LIVENESS;
                this.taskLiveness.string = i;
                var n = t.dictInfo.TARGET_VALUE.split(":")[1] - 0,
                s = this.protocol.getFieldValueEx(t.serverInfo, "complete_value").split(":")[1] - 0,
                o = new Array(s, n).join("/");
                this.taskCompletion.string = kf.require("logic.dict").getLanguage("150064")[1] + o
            },
            goButtonClick: function() {
                switch (this.taskType) {
                case this.taskLogic.TASK_TYPE.HIT_FISH_NUM:
                    this.roomLogic.fastIntoRoomRequest();
                    break;
                case this.taskLogic.TASK_TYPE.SIGN_IN:
                    this.hallScene.getComponent("hallScene").signInPopUp();
                    break;
                case this.taskLogic.TASK_TYPE.SHARP_TIME:
                    break;
                case this.taskLogic.TASK_TYPE.ONLINE_TIME:
                    break;
                case this.taskLogic.TASK_TYPE.HIT_FISH_COIN:
                    this.roomLogic.fastIntoRoomRequest();
                    break;
                case this.taskLogic.TASK_TYPE.RECHARGE_NUM:
                    this.hallScene.getComponent("hallScene").shopPopUp()
                }
                this.buttonManager.close(this.dailyTaskParent, "dailyTask", !0)
            }
        }),
        cc._RFpop()
    },
    {}],
    dailyTask: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "8aaffibdJ9AabAKbUnOaq8N", "dailyTask"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                livenessNumber: cc.Label,
                taskParentNode: cc.Node,
                dailyTaskItem: cc.Prefab,
                livenessProgress: cc.ProgressBar,
                livenessSprite: [cc.Node],
                livenessFrame: [cc.SpriteFrame]
            },
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent"),
                this.protocol = kf.require("util.byteProtocol"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.richlabel = kf.require("util.richlabel"),
                this.dictLogic = kf.require("logic.dict"),
                this.taskLogic = kf.require("logic.task"),
                this.hallLogic = kf.require("logic.hall"),
                this.taskParentNodeHeight = this.taskParentNode.getContentSize().height,
                this.registerEvent()
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerEvent: function() {
                this.registerHandler = [["showDailyTaskInfo", this.showTaskList.bind(this)], ["refreshLivenessInfo", this.setLivenessInfo.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            init: function() {
                this.initTaskInfo()
            },
            initTaskInfo: function() {
                this.taskLogic.queryLivenessTaskInfoRequest()
            },
            setLivenessInfo: function() {
                for (var t = 0; t < this.taskLogic.livenessAwardArr.length; t++) {
                    var e = this.protocol.getFieldValueEx(this.taskLogic.livenessAwardArr[t].serverInfo, "complete_value"),
                    i = e.split(":")[1];
                    this.livenessNumber.string = i;
                    var n = this.protocol.getFieldValueEx(this.taskLogic.livenessAwardArr[t].serverInfo, "status");
                    switch (n) {
                    case 1:
                        this.livenessSprite[t].getComponent(cc.Sprite).spriteFrame = this.livenessFrame[0],
                        this.livenessSprite[t].getComponent(cc.Button).enabled = !1;
                        break;
                    case 2:
                        this.livenessSprite[t].getComponent(cc.Sprite).spriteFrame = this.livenessFrame[1],
                        this.livenessSprite[t].getComponent(cc.Button).enabled = !0;
                        break;
                    case 3:
                        this.livenessSprite[t].getComponent(cc.Sprite).spriteFrame = this.livenessFrame[2],
                        this.livenessSprite[t].getComponent(cc.Button).enabled = !1
                    }
                }
                var s = this.dictLogic.getTask("95005").TARGET_VALUE.split(":")[1] - 0,
                o = this.livenessNumber.string / s;
                this.livenessProgress.progress = o
            },
            showTaskList: function() {
                for (var t = 0; t < this.taskLogic.livenessTaskArr.length; t++) {
                    if (this.taskParentNode.children[t]) var e = this.taskParentNode.children[t];
                    else {
                        var e = cc.instantiate(this.dailyTaskItem);
                        this.taskParentNode.addChild(e)
                    }
                    e.getComponent("dailyTaskItem").init(this.taskLogic.livenessTaskArr[t])
                }
                if (this.taskParentNode.children.length > this.taskLogic.livenessTaskArr.length) for (var i = this.taskLogic.livenessTaskArr.length; i < this.taskParentNode.children.length;) this.taskParentNode.children[i].destroy(),
                this.taskParentNode.removeChild(this.taskParentNode.children[i]);
                this.setLivenessInfo()
            },
            livenessButtonClick: function(t, e) {
                var i = e - 0,
                n = this.protocol.getFieldValueEx(this.taskLogic.livenessAwardArr[i].serverInfo, "task_id");
                this.taskLogic.getLivenessGiftRequest(n)
            },
            close: function() {
                this.buttonManager.close(this.node.parent, this.node.name, !1),
                this.buttonManager.open(this.node.parent, "freeGold", null)
            }
        }),
        cc._RFpop()
    },
    {}],
    diaPop: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "d8fc0pp3ydJiLoQ5WoffU9+", "diaPop"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                mainNode: cc.Node
            },
            onLoad: function() {
                this.unPlay = !1
            },
            init: function() {
                if (this.mainNode.scaleX = 1, this.mainNode.scaleY = 1, this.mainNode.setOpacity(255), this.mainNode.active = !0, this.diaBox = this.node.getChildByName("dialogBox"), this.diaBox && this.unPlay !== !0 && (this.diaBox.active = !1, this.animation = this.diaBox.getComponent(cc.Animation), this.screenSize = cc.director.getWinSize(), this.animation)) {
                    if (this.mainNode.active === !1) return void(this.unPlay = !1);
                    var t = this.animation.getAnimationState("dialogBox");
                    t && (t.on("finished", this.onFinished, this), this.unPlay = !0)
                }
            },
            onFinished: function() {
                this.diaBox.active = !1,
                this.mainNode.active = !0,
                this.unPlay = !1
            },
            update: function(t) {
                if (this.unPlay === !0 && this.node.getComponent("fishMoving").ready === !0 && this.mainNode.active === !0) {
                    var e = this.node.convertToWorldSpace(cc.p(0, 0));
                    e.x > 200 && e.x < this.screenSize.width && e.y > 60 && e.y < this.screenSize.height && (this.diaBox.active = !0, this.mainNode.active = !0, this.mainNode.scaleX = 1, this.mainNode.scaleY = 1, this.mainNode.setOpacity(255), this.mainNode.setContentSize(274, 167), this.animation.play("dialogBox"), this.unPlay = !1)
                }
            }
        }),
        cc._RFpop()
    },
    {}],
    dialLogic: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "c4621un5xVL2Lj/yXsesiPF", "dialLogic"),
        window.logic.dial = function() {
            var t = {},
            e = kf.require("util.network"),
            i = kf.require("basic.clientEvent"),
            n = kf.require("util.byteProtocol"),
            s = kf.require("logic.login"),
            o = kf.require("logic.dict");
            return t.init = function() {
                this.showInfo = [],
                this.registerMsg()
            },
            t.registerMsg = function() {
                e.registerEvent("RandomItemResponse",
                function(t) {
                    s.flagData.push(4),
                    s.valueData.push(4),
                    i.dispatchEvent("getUseDialSucessCallBack", t)
                }.bind(this)),
                e.registerEvent("protoGetRandomItemListResponse",
                function(t) {
                    var e = n.getFieldValue("protoGetRandomItemListResponse", "randomItems");
                    this.showInfo = e,
                    i.dispatchEvent("getRandomItemList", e)
                }.bind(this))
            },
            t.queryUseDialRequest = function(t) {
                e.send("RandomItemRequest")
            },
            t.getRandomItemListRequest = function() {
                e.send("protoGetRandomItemListRequest")
            },
            t.getDialAwardResPath = function(t) {
                for (var e = void 0,
                i = 0; i < this.showInfo.length; i++) if (this.showInfo[i].item_id == t) {
                    e = this.showInfo[i].award_id;
                    break
                }
                if (e) {
                    var n = o.getItemResPath(e);
                    return n
                }
                return null
            },
            t.getRotate = function(t) {
                for (var e = 0,
                i = 0; i < this.showInfo.length; i++) if (this.showInfo[i].item_id === Number(t)) {
                    e = 30 * (this.showInfo[i].item_id - 1);
                    break
                }
                return e
            },
            t.checkFlag = function(t, e) {
                for (var i = 0; i < t.length; i++) if (t[i] && t[i].Flag && t[i].Flag === e) return ! 0;
                return ! 1
            },
            t.addId = function(t, e, i) {
                for (var n = 0; n < t.length; n++) t[n] && t[n].Flag && t[n].Flag === e && t[n].List.push(i)
            },
            t.getNeedAddCount = function() {
                for (var t = [], e = 0; e < this.showInfo.length; e++) this.checkFlag(t, this.showInfo[e].award_id) ? this.addId(t, this.showInfo[e].award_id, this.showInfo[e].item_id) : (t[e] = [], t[e].Flag = this.showInfo[e].award_id, t[e].List = [], t[e].List.push(this.showInfo[e].item_id));
                return t
            },
            t.getDialAwardNum = function(t) {
                for (var e = 0; e < this.showInfo.length; e++) if (this.showInfo[e].item_id == t) return this.showInfo[e].num;
                return 0
            },
            t
        },
        cc._RFpop()
    },
    {}],
    dial: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "880e7odmtpIsojlRXPLqq3N", "dial"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                dailInRotated: cc.Node,
                rotatyBtn: cc.Button,
                ligthNode: cc.Node,
                showNode: [cc.Node],
                endWaitTime: 2e3,
                rotateTime: 5,
                rotateRound: 2
            },
            onLoad: function() {
                this.buttonManager = kf.require("util.buttonManager"),
                this.dialLogic = kf.require("logic.dial"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.lang = kf.require("util.lang"),
                this.dictLogic = kf.require("logic.dict"),
                this.dialLogic.init(),
                this.initd = !1,
                this.count = .5,
                this.dialLogic.getRandomItemListRequest()
            },
            init: function() {
                this.idx = 0,
                this.registerEvent(),
                kf.require("logic.dial").init()
            },
            registerEvent: function() {
                this.registerHandler = [["getUseDialSucessCallBack", this.getUseDialSucessCallBack.bind(this)], ["getUseDialFailCallBack", this.getUseDialFailCallBack.bind(this)], ["getRandomItemList", this.getRandomItemList.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            getUseDialSucessCallBack: function(t) {
                var e = this.dialLogic.getRotate(t.randomID);
                e += 360 * this.rotateRound;
                var i = cc.rotateTo(this.rotateTime, -e);
                i.easing(cc.easeBackInOut(this.rotateTime));
                var n = cc.delayTime(this.endWaitTime),
                s = cc.callFunc(function() {
                    this.ligthNode.active = !0,
                    this.ligthNode.opacity = 255;
                    var t = (cc.fadeIn(this.endWaitTime / 2), cc.fadeOut(this.endWaitTime / 2)),
                    e = cc.sequence(cc.delayTime(0), t),
                    i = cc.repeatForever(e);
                    this.ligthNode.runAction(i)
                }.bind(this)),
                o = cc.callFunc(function() {
                    this.rotatyBtn.enabled = !0,
                    this.ligthNode.active = !1,
                    this.ligthNode.stopAllActions();
                    var e = this.dictLogic.getItemName(null, t.itemID),
                    i = this.lang.get("dialSucessTip") + t.itemNum + e,
                    n = {
                        message: i,
                        button2: {
                            name: this.lang.get("MBOK"),
                            frame: 0,
                            callback: function() {}
                        }
                    };
                    this.clientEvent.dispatchEvent("showMessage", n)
                }.bind(this)),
                a = cc.sequence(i, s, n, o);
                this.dailInRotated.runAction(a)
            },
            getUseDialFailCallBack: function() {
                this.rotatyBtn.enabled = !0
            },
            close: function() {
                this.rotatyBtn.enabled !== !1 && (this.unregisterEvent(), this.buttonManager.close(this.node.parent, this.node.name, !0))
            },
            updateShowInfo: function() {
                this.idx = 0;
                var t = this.dialLogic.getNeedAddCount();
                t.forEach(function(t) {
                    var e = this.dialLogic.getDialAwardResPath(t.List[0]);
                    e && cc.loader.loadRes(e,
                    function(e, i) {
                        for (var n = 0; n < t.List.length; n++) {
                            var s = this.showNode[t.List[n] - 1],
                            o = s.getChildByName("New Label").getComponent(cc.Label);
                            o.string = this.dialLogic.getDialAwardNum(t.List[n]);
                            var a = s.getChildByName("New Sprite"),
                            r = a.getComponent(cc.Sprite),
                            c = new cc.SpriteFrame;
                            c.initWithTexture(i),
                            r.spriteFrame = c;
                            var h = 51 / a.getContentSize().width,
                            l = 54 / a.getContentSize().height;
                            a.setScale(h, l)
                        }
                        this.idx = this.idx + 1
                    }.bind(this))
                }.bind(this))
            },
            getRandomItemList: function(t) {
                this.updateShowInfo()
            },
            drawAward: function() {
                this.rotatyBtn.enabled = !1,
                this.dialLogic.queryUseDialRequest()
            }
        }),
        cc._RFpop()
    },
    {}],
    dictLogic: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "eb45a4loFNOcr0LaP6LkIQI", "dictLogic"),
        window.logic.dict = function() {
            var t = {},
            e = (kf.require("util.lang"), kf.require("basic.clientEvent"));
            kf.require("logic.login"),
            kf.require("util.byteProtocol"),
            kf.require("util.network");
            return t.init = function() {
                cc.log("zq debug dict init======================");
                var t = this,
                i = ["Activity", "fish", "Formation", "GiftShop", "Gun", "Item", "Language", "Path", "Reward", "Room", "Scene", "SceneShoal", "Shop", "Task", "TurnTable", "Vip", "Change", "Notice", "Button"];
                this.count = 0,
                this.finishPreLoad = !1;
                for (var n = 0; n < i.length; n++) {
                    var s = i[n];
                    cc.loader.loadRes("dict/tDict" + s,
                    function(n, s) {
                        if (window.g_xxtea && (s = JSON.parse(window.g_xxtea.xxtea_decrypt(s))), s[0] && void 0 !== s[0].R_Velocity) for (var o, a = 0; o = s[a++];) o.FormationID = Number(o.FormationID),
                        o.FormationIndex = Number(o.FormationIndex),
                        o.FishID = Number(o.FishID),
                        o.PathID = Number(o.PathID),
                        o.Type = Number(o.Type),
                        o.Per = Number(o.Per),
                        o.Radius = Number(o.Radius),
                        o.R_Velocity = Number(o.R_Velocity),
                        o.Angle = Number(o.Angle),
                        o.A_Velocity = Number(o.A_Velocity);
                        if (s[0] && void 0 !== s[0].Point1 && void 0 !== s[0].Point2) for (var r, a = 0; r = s[a++];) r.PathID = Number(r.PathID);
                        if (s[0] && void 0 !== s[0].SceneID && void 0 !== s[0].PerSpeed && void 0 !== s[0].ShoalID) for (var c, a = 0; c = s[a++];) c.SceneID = Number(c.SceneID),
                        c.ShoalID = Number(c.ShoalID),
                        c.Delay = Number(c.Delay),
                        c.PerSpeed = Number(c.PerSpeed);
                        if (s[0] && void 0 !== s[0].FishTypeID) for (var h, a = 0; h = s[a++];) h.FishTypeID = Number(h.FishTypeID),
                        h.NAME_KEY = Number(h.NAME_KEY),
                        h.Type = Number(h.Type),
                        h.Source = Number(h.Source),
                        h.DynScore = Number(h.DynScore),
                        h.BaseScore = Number(h.BaseScore),
                        h.CycleType = Number(h.CycleType),
                        h.Cut = Number(h.Cut),
                        h.radius = Number(h.radius),
                        h.KILLBYBOMB = Number(h.KILLBYBOMB),
                        h.RealScore_0 = Number(h.RealScore_0),
                        h.RealScore_1 = Number(h.RealScore_1);
                        t[this] = s,
                        "Button" === this && e.dispatchEvent("afterLoadButtonConfig"),
                        t.count++,
                        t.count === i.length && (e.dispatchEvent("preloadFinish", "dict"), t.finishPreLoad = !0, e.dispatchEvent("dictPreloadFinish", t.finishPreLoad))
                    }.bind(s))
                }
            },
            t.convertPath = function(t) {
                for (var e = [], i = 1; i <= 6; i++) {
                    var n = t["Point" + i];
                    if (void 0 === n || 0 === n.length) break;
                    n = n.split(";");
                    var s = cc.p(parseFloat(n[0]), parseFloat(n[1]));
                    e.push(cc.pMult(s, 72))
                }
                return e
            },
            t.interp = function(t, e) {
                var i = t.length - 3,
                n = Math.min(parseInt(Math.floor(e * i)), i - 1),
                s = e * i - n,
                o = t[n],
                a = t[n + 1],
                r = t[n + 2],
                c = t[n + 3],
                h = cc.pMult(cc.pAdd(cc.pSub(cc.pMult(a, 3), o), cc.pSub(c, cc.pMult(r, 3))), s * s * s),
                l = cc.pMult(cc.pAdd(cc.pSub(cc.pMult(o, 2), cc.pMult(a, 5)), cc.pSub(cc.pMult(r, 4), c)), s * s),
                g = cc.pMult(cc.pSub(r, o), s),
                d = cc.pMult(a, 2);
                return cc.pMult(cc.pAdd(cc.pAdd(h, l), cc.pAdd(g, d)), .5)
            },
            t.pathControlPointGenerator = function(t) {
                var e = new Array(1).concat(t).concat(new Array(1));
                if (e[0] = cc.pAdd(e[1], cc.pSub(e[1], e[2])), e[e.length - 1] = cc.pAdd(e[e.length - 2], cc.pSub(e[e.length - 2], e[e.length - 3])), cc.pointEqualToPoint(e[1], e[e.length - 2])) {
                    var i = kf.clone(e);
                    i[0] = i[i.length - 3],
                    i[i.length - 1] = i[2],
                    e = kf.clone(i)
                }
                return e
            },
            t.getScene = function(t) {
                for (var e = void 0,
                i = 0; i < this.Scene.length; i++) if (this.Scene[i].SceneID === t) {
                    e = this.Scene[i];
                    break
                }
                return e
            },
            t.getSceneBackgroundTex = function(t) {
                var e = this.getScene(t).BackgroundID,
                i = e.split("bkg")[1] - 1;
                return 3 === i ? i = 1 : 4 === i && (i = 2),
                i
            },
            t.getShoal = function(t) {
                for (var e = [], i = 0; i < this.SceneShoal.length; i++) this.SceneShoal[i].SceneID === t && e.push(this.SceneShoal[i]);
                return e
            },
            t.getShop = function(t) {
                for (var e = [], i = 0; i < this.Shop.length; i++) this.Shop[i].ID === t && (e = this.Shop[i]);
                return e
            },
            t.getFormation = function(t) {
                for (var e = [], i = 0; i < this.Formation.length; i++) this.Formation[i].FormationID === t && e.push(this.Formation[i]);
                return e
            },
            t.getFish = function(t) {
                for (var e = void 0,
                i = 0; i < this.fish.length; i++) if (this.fish[i].FishTypeID === t) {
                    e = this.fish[i];
                    break
                }
                return e
            },
            t.getFishName = function(e) {
                return t.getFish(e).Name
            },
            t.getFishBaseScore = function(e) {
                return 138 === e ? t.getFish(e).RealScore_0 + "-" + t.getFish(e).RealScore_1: t.getFish(e).BaseScore
            },
            t.getPath = function(t) {
                for (var e = void 0,
                i = 0; i < this.Path.length; i++) if (this.Path[i].PathID === t) {
                    e = this.Path[i];
                    break
                }
                return e
            },
            t.getItem = function(t) {
                for (var e = void 0,
                i = 0; i < this.Item.length; i++) if (this.Item[i].ITEM_TYPEID === t.toString()) {
                    e = this.Item[i];
                    break
                }
                return e
            },
            t.getItemResPath = function(t) {
                for (var e = void 0,
                i = 0; i < this.Item.length; i++) if (this.Item[i].ID === Number(t)) {
                    e = this.Item[i].ResPath;
                    break
                }
                return e
            },
            t.getItemResPathForChange = function(t) {
                for (var e = void 0,
                i = 0; i < this.Item.length; i++) if (this.Item[i].ID === Number(t)) {
                    e = "itemChange/item" + t;
                    break
                }
                return e
            },
            t.getItemType = function(t) {
                for (var e = void 0,
                i = 0; i < this.Item.length; i++) if (this.Item[i].ID === Number(t)) {
                    e = this.Item[i].Type;
                    break
                }
                return e
            },
            t.getItemDesc = function(t) {
                for (var e = void 0,
                i = 0; i < this.Item.length; i++) if (this.Item[i].ID === Number(t)) {
                    e = this.Item[i].Desc;
                    break
                }
                return e
            },
            t.getItemName = function(e, i) {
                if (i) {
                    for (var n = void 0,
                    s = 0; s < this.Item.length; s++) if (this.Item[s].ID === Number(i)) {
                        n = this.Item[s].Name;
                        break
                    }
                    return n
                }
                return t.getItem(e).NAME
            },
            t.getLanguage = function(t) {
                for (var e = t,
                i = 0; i < this.Language.length; i++) if (this.Language[i][0] === t) {
                    e = this.Language[i];
                    break
                }
                return e
            },
            t.getChangeInfo = function() {
                return this.Change
            },
            t.getVip = function(t) {
                for (var e = void 0,
                i = 0; i < this.Vip.length; i++) if (this.Vip[i].ID === Number(t)) {
                    e = this.Vip[i];
                    break
                }
                return e
            },
            t.getVipSign = function(t) {
                for (var e = void 0,
                i = 0; i < this.Vip.length; i++) if (this.Vip[i].ID === Number(t)) {
                    e = this.Vip[i].Signin;
                    break
                }
                return e
            },
            t.getVipDailyTask = function(t) {
                for (var e = void 0,
                i = 0; i < this.Vip.length; i++) if (this.Vip[i].ID === Number(t)) {
                    e = this.Vip[i].DailyTask;
                    break
                }
                return e
            },
            t.getVipLength = function(t) {
                return this.Vip.length
            },
            t.getGiftShop = function(t) {
                for (var e = void 0,
                i = 0; i < this.GiftShop.length; i++) if (this.GiftShop[i].shopkey === t) {
                    e = this.GiftShop[i];
                    break
                }
                return e
            },
            t.getGiftShopItem = function(t) {
                for (var e = 0; e < this.GiftShop.length; e++) if (t === this.GiftShop[e].ITEM_TYPEID) return this.GiftShop[e]
            },
            t.getTask = function(t) {
                for (var e = void 0,
                i = 0; i < this.Task.length; i++) if (this.Task[i].TASK_ID === t.toString()) {
                    e = this.Task[i];
                    break
                }
                return e
            },
            t.getGun = function(t) {
                for (var e = void 0,
                i = 0; i < this.Gun.length; i++) if (this.Gun[i].Gun_ID === t) {
                    e = this.Gun[i];
                    break
                }
                return e
            },
            t.getGunLevel = function(e) {
                return t.getGun(e.toString()).Gun_level
            },
            t.getGunRes = function(e) {
                return t.getGun(e.toString()).Gun_Res
            },
            t.getGunList = function(e) {
                var i = t.getRoom(e.toString()).GUN_LIST;
                return i.split(";")
            },
            t.getRoom = function(t) {
                for (var e = void 0,
                i = 0; i < this.Room.length; i++) if (this.Room[i].ROOM_ID === t.toString()) {
                    e = this.Room[i];
                    break
                }
                return e
            },
            t.getRoomIdByName = function(t) {
                for (var e = void 0,
                i = 0; i < this.Room.length; i++) if (this.Room[i].ROOM_NAME === t) {
                    e = this.Room[i];
                    break
                }
                return e.ROOM_ID
            },
            t.getFishSourceByName = function(t) {
                for (var e = void 0,
                i = 0; i < this.fish.length; i++) if (this.fish[i].Res === t) {
                    e = this.fish[i].Source;
                    break
                }
                return e
            },
            t.getActivity = function(t) {
                for (var e = void 0,
                i = 0; i < this.Activity.length; i++) if (this.Activity[i].key === t) {
                    e = this.Activity[i];
                    break
                }
                return e
            },
            t.getReward = function(t) {
                for (var e = void 0,
                i = 0; i < this.Reward.length; i++) if (this.Reward[i].REWARD_ID === t.toString()) {
                    e = this.Reward[i];
                    break
                }
                return e
            },
            t.getRewardIdByActivity = function(t, e) {
                for (var i = 0; i < this.Activity.length; i++) if (this.Activity[i].value == t) return this.Activity[i]
            },
            t.getDialInfo = function() {
                return this.TurnTable
            },
            t.getNotice = function() {
                return this.Notice
            },
            t.getButtonState = function(t) {
                for (var e = 0; e < this.Button.length; e++) if (this.Button[e].BUTTON_ID === t.toString()) return 1 === this.Button[e].State;
                return ! 0
            },
            t
        },
        cc._RFpop()
    },
    {}],
    drip: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "bba03+hJeVJ0qoKLtcoHZHQ", "drip"),
        cc.Class({
            "extends": cc.Component,
            properties: {},
            onLoad: function() {
                this.anim = this.getComponent(cc.Animation)
            },
            init: function() {
                this.anim.play(this.node.name)
            },
            onAnimCompleted: function(t) {
                this.anim.stop(this.node.name),
                kf.require("logic.room").putInPool("Drip", this.node)
            }
        }),
        cc._RFpop()
    },
    {}],
    editBoxTouch: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "f1532y3zkpIqZ3VCtE02A3J", "editBoxTouch"),
        cc.Class({
            "extends": cc.Component,
            properties: {},
            onLoad: function() {},
            setStayOnTopTrue: function() {
                this.node.getComponent(cc.EditBox).StayOnTop = !0
            },
            setStayOnTopFalse: function() {
                this.node.getComponent(cc.EditBox).StayOnTop = !1
            }
        }),
        cc._RFpop()
    },
    {}],
    eightHonors: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "bdf656vnbJJiLmI4ZDD7nDW", "eightHonors"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                notice: cc.Node
            },
            onLoad: function() {
                this.loginLogic = kf.require("logic.login"),
                this.loginLogic.loginInfo.showTips ? (this.loginLogic.loginInfo.showTips = !1, this.scheduleOnce(function() {
                    this.node.active = !1,
                    this.notice.active = !0
                },
                3)) : (this.node.active = !1, 1 === this.loginLogic.loginInfo.mode ? cc.find("Canvas/loginScene").active = !0 : 2 === this.loginLogic.loginInfo.mode && this.loginLogic.loginThird())
            }
        }),
        cc._RFpop()
    },
    {}],
    eventListener: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "12087wLNaJOvb0IyHOKlV3h", "eventListener"),
        window.basic.eventListener = function() {
            var t = {};
            t.register = function(t, e) {
                this[t] = e
            },
            t.dispatch = function(t) {
                for (var e = this[t], i = [], n = 1; n < arguments.length; n++) i.push(arguments[n]);
                e ? e.apply(this, i) : cc.log("not register " + t + "    callback func")
            };
            var e = {};
            e.register = function(t, e) {
                var i = this.handlers[t];
                i || (i = [], this.handlers[t] = i);
                for (var n = 0; n < i.length; n++) if (!i[n]) return i[n] = e,
                n;
                return i.push(e),
                i.length
            },
            e.dispatch = function(t) {
                var e, i = this.handlers[t],
                n = [];
                for (e = 1; e < arguments.length; e++) n.push(arguments[e]);
                if (i) for (e = 0; e < i.length; e++) {
                    var s = i[e];
                    s && s.apply(this, n)
                }
            },
            e.unregister = function(t, e) {
                var i = this.handlers[t];
                if (i) for (var n = 0; n < i.length; n++) {
                    var s = i[n];
                    if (s === e) {
                        i.splice(n, 1);
                        break
                    }
                }
            };
            var i = function(t, e) {
                return e = Object.create(e),
                t.__proto__ = e.__proto__,
                t
            },
            n = {};
            return n.create = function(n) {
                var s = {};
                return "multi" === n ? (s.handlers = {},
                i(s, Object.create(e))) : i(s, Object.create(t)),
                s
            },
            n
        },
        cc._RFpop()
    },
    {}],
    exgratiaPackage: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "01981R1joBBubK1Wv5iJWsr", "exgratiaPackage"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                vipPre: cc.Prefab,
                arrpackage: [cc.Node],
                arrParent: cc.Node,
                reward: cc.Label,
                addreward: cc.Label,
                vipStr: cc.Label,
                leftBtn: cc.Node,
                rightBtn: cc.Node,
                vipNum: cc.Label,
                buyNum: cc.Label,
                buyBtn: cc.Label,
                vipBuy: cc.Node,
                buyButton: cc.Node,
                todayNum: cc.Node,
                todayNumber: cc.Label,
                keBuyNum: cc.Label,
                vipLevelUpLabel: cc.RichText,
                vipLevelUpProgress: cc.ProgressBar,
                vipLeftLabel: cc.Label,
                vipRightLabel: cc.Label,
                content: cc.Node
            },
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent"),
                this.lang = kf.require("util.lang"),
                this.hallLogic = kf.require("logic.hall"),
                this.bagLogic = kf.require("logic.bag"),
                this.protocol = kf.require("util.byteProtocol"),
                this.dictLogic = kf.require("logic.dict"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.canvas = cc.find("Canvas"),
                this.registerMsg()
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerMsg: function() {
                this.registerHandler = [["exgratiaPackageNextSuccess", this.exgratiaPackageNextSuccess.bind(this)], ["RechargeResponeEx", this.RechargeResponeEx.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            init: function() {
                this.hallLogic.queryRechargeItem(4),
                this.RechargeResponeEx(),
                this.showVip(),
                this.vipOver(),
                this["package"]()
            },
            exgratiaPackageNextSuccess: function() {
                this.touchpackage(),
                this.vipUser()
            },
            RechargeResponeEx: function() {
                this.protocol.getFieldValue("RechargeResponeEx", "vip") ? (this.vipLevel = this.protocol.getFieldValue("RechargeResponeEx", "vip"), this.totalRecharge = this.protocol.getFieldValue("RechargeResponeEx", "total_recharge")) : (this.vipLevel = this.protocol.getFieldValue("LoginRespone", "vip"), this.totalRecharge = this.protocol.getFieldValue("LoginRespone", "total_recharge"));
                var t = this.dictLogic.getLanguage("140882")[1];
                t = this.hallLogic.getVipNextLevelExpString(t, this.vipLevel + 1, this.totalRecharge),
                this.vipLevelUpLabel.string = t,
                this.vipLevelUpProgress.progress = this.hallLogic.getVipCurrentLevelExpProgress(this.vipLevel, this.totalRecharge),
                this.vipLeftLabel.string = this.totalRecharge,
                this.vipRightLabel.string = "/" + this.dictLogic.getVip(this.vipLevel + 1).VIP_EXP
            },
            touchpackage: function() {
                if (0 === this.vip) {
                    if (this.rightBtn.active = !1, this.vipBuy.active = !0, this.todayNum.active = !1, void 0 === this.touchTarget) return this.reward.string = this.hallLogic.rewardDataNext[0],
                    void(this.addreward.string = this.hallLogic.addrewardDataNext[0]);
                    switch (this.touchTarget.name) {
                    case "package68":
                        this.reward.string = this.hallLogic.rewardDataNext[0],
                        this.addreward.string = this.hallLogic.addrewardDataNext[0];
                        break;
                    case "package128":
                        this.reward.string = this.hallLogic.rewardDataNext[1],
                        this.addreward.string = this.hallLogic.addrewardDataNext[1];
                        break;
                    case "package198":
                        this.reward.string = this.hallLogic.rewardDataNext[2],
                        this.addreward.string = this.hallLogic.addrewardDataNext[2];
                        break;
                    case "package328":
                        this.reward.string = this.hallLogic.rewardDataNext[3],
                        this.addreward.string = this.hallLogic.addrewardDataNext[3];
                        break;
                    case "package648":
                        this.reward.string = this.hallLogic.rewardDataNext[4],
                        this.addreward.string = this.hallLogic.addrewardDataNext[4];
                        break;
                    case "package1000":
                        this.reward.string = this.hallLogic.rewardDataNext[5],
                        this.addreward.string = this.hallLogic.addrewardDataNext[5]
                    }
                } else {
                    if (this.vipOver(), void 0 === this.touchTarget) if (this.vip < 6) this.reward.string = this.hallLogic.rewardData[0],
                    this.addreward.string = this.hallLogic.addrewardData[0],
                    this.buyBtn.string = "￥" + this.hallLogic.priceData[0] + "购买";
                    else switch (this.arrParent.children[0].getChildByName("package").active = !1, this.vip) {
                    case 6:
                        this.arrParent.children[1].getChildByName("package").active = !0,
                        this.reward.string = this.hallLogic.rewardData[1],
                        this.addreward.string = this.hallLogic.addrewardData[1],
                        this.buyBtn.string = "￥" + this.hallLogic.priceData[1] + "购买";
                        break;
                    case 7:
                        this.arrParent.children[2].getChildByName("package").active = !0,
                        this.reward.string = this.hallLogic.rewardData[2],
                        this.addreward.string = this.hallLogic.addrewardData[2],
                        this.buyBtn.string = "￥" + this.hallLogic.priceData[2] + "购买";
                        break;
                    case 8:
                        this.arrParent.children[3].getChildByName("package").active = !0,
                        this.reward.string = this.hallLogic.rewardData[3],
                        this.addreward.string = this.hallLogic.addrewardData[3],
                        this.buyBtn.string = "￥" + this.hallLogic.priceData[3] + "购买";
                        break;
                    case 9:
                        this.arrParent.children[4].getChildByName("package").active = !0,
                        this.reward.string = this.hallLogic.rewardData[4],
                        this.addreward.string = this.hallLogic.addrewardData[4],
                        this.buyBtn.string = "￥" + this.hallLogic.priceData[4] + "购买";
                        break;
                    case 10:
                        this.arrParent.children[5].getChildByName("package").active = !0,
                        this.reward.string = this.hallLogic.rewardData[5],
                        this.addreward.string = this.hallLogic.addrewardData[5],
                        this.buyBtn.string = "￥" + this.hallLogic.priceData[5] + "购买"
                    }
                    if (void 0 === this.touchTarget) return;
                    switch (this.touchTarget.name) {
                    case "package68":
                        this.reward.string = this.hallLogic.rewardData[0],
                        this.addreward.string = this.hallLogic.addrewardData[0],
                        this.buyBtn.string = "￥" + this.hallLogic.priceData[0] + "购买";
                        break;
                    case "package128":
                        this.reward.string = this.hallLogic.rewardData[1],
                        this.addreward.string = this.hallLogic.addrewardData[1],
                        this.buyBtn.string = "￥" + this.hallLogic.priceData[1] + "购买";
                        break;
                    case "package198":
                        this.reward.string = this.hallLogic.rewardData[2],
                        this.addreward.string = this.hallLogic.addrewardData[2],
                        this.buyBtn.string = "￥" + this.hallLogic.priceData[2] + "购买";
                        break;
                    case "package328":
                        this.reward.string = this.hallLogic.rewardData[3],
                        this.addreward.string = this.hallLogic.addrewardData[3],
                        this.buyBtn.string = "￥" + this.hallLogic.priceData[3] + "购买";
                        break;
                    case "package648":
                        this.reward.string = this.hallLogic.rewardData[4],
                        this.addreward.string = this.hallLogic.addrewardData[4],
                        this.buyBtn.string = "￥" + this.hallLogic.priceData[4] + "购买";
                        break;
                    case "package1000":
                        this.reward.string = this.hallLogic.rewardData[5],
                        this.addreward.string = this.hallLogic.addrewardData[5],
                        this.buyBtn.string = "￥" + this.hallLogic.priceData[5] + "购买"
                    }
                }
            },
            vipOver: function() {
                if (! (this.vip < 6)) {
                    var t = this.arrParent.children[0];
                    switch (this.vip) {
                    case 6:
                        this.arrParent.children[0] = this.arrParent.children[1],
                        this.arrParent.children[1] = t;
                        break;
                    case 7:
                        this.arrParent.children[0] = this.arrParent.children[2],
                        this.arrParent.children[2] = t;
                        break;
                    case 8:
                        this.arrParent.children[0] = this.arrParent.children[3],
                        this.arrParent.children[3] = t;
                        break;
                    case 9:
                        this.arrParent.children[0] = this.arrParent.children[4],
                        this.arrParent.children[4] = t;
                        break;
                    case 10:
                        this.arrParent.children[0] = this.arrParent.children[5],
                        this.arrParent.children[5] = t
                    }
                }
            },
            vipUser: function() {
                0 !== this.vip && (this.rightBtn.active = !0)
            },
            leftButton: function() {
                if (this.rightBtn.active = !0, this.leftBtn.active = !1, 0 === this.vip ? this.vipNum.string = "会员 1 特惠": this.vipNum.string = "会员 " + this.vip + " 特惠", this.vipBuy.active = !1, this.todayNum.active = !0, this.buyButton.opacity = 255, this.buyButton.getComponent(cc.Button).interactable = !0, this.touchTarget) switch (this.touchTarget.name) {
                case "package68":
                    this.addreward.string = this.hallLogic.addrewardData[0],
                    this.todayNumber.string = this.hallLogic.buyNumData[0];
                    break;
                case "package128":
                    this.addreward.string = this.hallLogic.addrewardData[1],
                    this.todayNumber.string = this.hallLogic.buyNumData[1];
                    break;
                case "package198":
                    this.addreward.string = this.hallLogic.addrewardData[2],
                    this.todayNumber.string = this.hallLogic.buyNumData[2];
                    break;
                case "package328":
                    this.addreward.string = this.hallLogic.addrewardData[3],
                    this.todayNumber.string = this.hallLogic.buyNumData[3];
                    break;
                case "package648":
                    this.addreward.string = this.hallLogic.addrewardData[4],
                    this.todayNumber.string = this.hallLogic.buyNumData[4];
                    break;
                case "package1000":
                    this.addreward.string = this.hallLogic.addrewardData[5],
                    this.todayNumber.string = this.hallLogic.buyNumData[5]
                } else this.hallLogic.addrewardData && (this.addreward.string = this.hallLogic.addrewardData[0]),
                this.hallLogic.buyNumData && (this.todayNumber.string = this.hallLogic.buyNumData[0])
            },
            rightButton: function() {
                if (this.rightBtn.active = !1, this.leftBtn.active = !0, this.vipNum.string = "会员 " + (this.vip + 1) + " 特惠", this.vipBuy.active = !0, this.todayNum.active = !1, this.keBuyNum.string = this.vip + 1, this.buyButton.opacity = 100, this.buyButton.getComponent(cc.Button).interactable = !1, this.touchTarget) switch (this.touchTarget.name) {
                case "package68":
                    this.addreward.string = this.hallLogic.addrewardDataNext[0];
                    break;
                case "package128":
                    this.addreward.string = this.hallLogic.addrewardDataNext[1];
                    break;
                case "package198":
                    this.addreward.string = this.hallLogic.addrewardDataNext[2];
                    break;
                case "package328":
                    this.addreward.string = this.hallLogic.addrewardDataNext[3];
                    break;
                case "package648":
                    this.addreward.string = this.hallLogic.addrewardDataNext[4];
                    break;
                case "package1000":
                    this.addreward.string = this.hallLogic.addrewardDataNext[5]
                } else this.addreward.string = this.hallLogic.addrewardDataNext[0]
            },
            showVip: function() {
                this.vip = this.protocol.getFieldValue("LoginRespone", "vip"),
                this.vipStr.string = this.vip,
                0 !== this.vip && (this.vipNum.string = "会员 " + this.vip + " 特惠")
            },
            btnBuy: function() {
                if ("成为会员" === this.buyBtn.string) this.closePopUp(),
                0 === this.hallLogic.newuser ? this.clientEvent.dispatchEvent("shopPopUp") : this.clientEvent.dispatchEvent("novicePacksPopUp");
                else {
                    var t = {
                        message: this.lang.get("buy"),
                        button1: {
                            name: this.lang.get("MBCANCEL"),
                            frame: 1,
                            callback: function() {}
                        },
                        button3: {
                            name: this.lang.get("MBOK"),
                            frame: 0,
                            callback: function() {
                                for (var t = this.protocol.getFieldValue("LoginRespone", "vip"), e = this.hallLogic.exgratiaPackage, i = [], n = [], s = 0; s < e.length; s++) e[s].vip === t && (i.push(e[s].recharge_id), n.push(e[s].name));
                                switch (this.reward.string) {
                                case 68e4:
                                    var o = i[0],
                                    a = n[0];
                                    break;
                                case 128e4:
                                    var o = i[1],
                                    a = n[1];
                                    break;
                                case 198e4:
                                    var o = i[2],
                                    a = n[2];
                                    break;
                                case 328e4:
                                    var o = i[3],
                                    a = n[3];
                                    break;
                                case 648e4:
                                    var o = i[4],
                                    a = n[4];
                                    break;
                                case 1e7:
                                    var o = i[5],
                                    a = n[5]
                                }
                                this.bagLogic.getPayUrl(o, a,
                                function(t) {
                                    var e = cc.instantiate(this.pay);
                                    e.parent = this.node,
                                    e.getComponent("pay").init(t)
                                })
                            }.bind(this)
                        }
                    };
                    this.clientEvent.dispatchEvent("showMessage", t)
                }
            },
            closePopUp: function() {
                this.leftButton(),
                this.buttonManager.close(this.node.parent, this.node.name, !0)
            },
            vipPopUp: function() {
                this.buttonManager.open(this.node, "vip", this.vipPre)
            },
            novicePushUp: function() {
                var t = this.node.getComponent(cc.Animation).play();
                t.wrapMode = cc.WrapMode.Reverse,
                "popup" === this.node.parent.name && (this.buttonManager.open(this.node.parent, "novicePacks", this.novicePacks), this.scheduleOnce(function() {
                    this.closePopUp()
                },
                .05))
            },
            "package": function() {
                for (var t = 0; t < this.arrpackage.length; t++) this.arrpackage[t].on("touchend",
                function(t) {
                    for (var e = 0; e < 6; e++) this.arrpackage[e].getChildByName("package").active = !1;
                    this.touchTarget = t.target,
                    this.touchTarget.getChildByName("package").active = !0,
                    this.touchpackage(),
                    0 !== this.vip && this.leftButton()
                },
                this)
            }
        }),
        cc._RFpop()
    },
    {}],
    findPassword: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "debafJHXBdAH6MutgxAQjdO", "findPassword"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                findPswd: cc.Node,
                phoneEditBox: cc.EditBox,
                smsCodeEditBox: cc.EditBox,
                newPswdEditBox: cc.EditBox,
                pswdokEditBox: cc.EditBox,
                btnGetSmsCode: cc.Node,
                tick: cc.Node
            },
            onLoad: function() {
                this.loginLogic = kf.require("logic.login"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.protocol = kf.require("util.byteProtocol"),
                this.lang = kf.require("util.lang"),
                this.dictLogic = kf.require("logic.dict"),
                this.hallLogic = kf.require("logic.hall"),
                this.registerMsg(),
                this.count = 180,
                this.isCount = !1
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerMsg: function() {
                this.registerHandler = [["registerVerifySuccess", this.registerVerifySuccess.bind(this)], ["resetPasswdSuccess", this.resetPasswdSuccess.bind(this)], ["findPawdGetCodeSuccess", this.findPawdGetCodeSuccess.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            getSmsCode: function() {
                var t = this.phoneEditBox.string;
                0 === t.length ? this.clientEvent.dispatchEvent("showOkMessage", "130008", !0) : 11 !== t.length ? this.clientEvent.dispatchEvent("showOkMessage", "130011", !0) : this.loginLogic.registerVerifyRequest(t)
            },
            resetLogin: function() {
                this.phoneString = this.phoneEditBox.string;
                var t = this.smsCodeEditBox.string;
                this.newPswdString = this.newPswdEditBox.string;
                var e = this.pswdokEditBox.string;
                this.tick.active ? 0 === t.length ? this.clientEvent.dispatchEvent("showOkMessage", "130015", !0) : 0 === this.newPswdString.length ? this.clientEvent.dispatchEvent("showOkMessage", "130016", !0) : 0 === e.length ? this.clientEvent.dispatchEvent("showOkMessage", "130017", !0) : this.newPswdString !== e ? this.clientEvent.dispatchEvent("showOkMessage", "130018", !0) : this.newPswdString.length < 8 && e.length < 8 ? this.clientEvent.dispatchEvent("showOkMessage", "130020", !0) : this.loginLogic.resetPasswd(this.phoneString, t, this.newPswdString) : this.clientEvent.dispatchEvent("showOkMessage", "150001", !0)
            },
            registerVerifySuccess: function() {
                this.node.active === !0 && (this.btnGetSmsCode.opacity = 180, this.btnGetSmsCode.getComponent(cc.Button).interactable = !1, this.isCount = !0, this.getSmsCode = this.btnGetSmsCode.getChildByName("label").getComponent(cc.Label), this.isCount === !1 && (this.btnGetSmsCode.opacity = 255, this.btnGetSmsCode.getComponent(cc.Button).interactable = !0, this.getSmsCode.string = "获取验证码"))
            },
            findPawdGetCodeSuccess: function() {
                var t = this.protocol.getFieldValue("FindPasswdVerifyCodeNewRespone", "result");
                switch (t) {
                case - 2 : this.clientEvent.dispatchEvent("showOkMessage", "130010", !0);
                    break;
                case - 1 : this.clientEvent.dispatchEvent("showOkMessage", "130011", !0);
                    break;
                case - 132 : this.clientEvent.dispatchEvent("showOkMessage", "130010", !0);
                    break;
                case 0:
                    this.clientEvent.dispatchEvent("showOkMessage", "130012", !0),
                    this.btnGetSmsCode.opacity = 180,
                    this.btnGetSmsCode.getComponent(cc.Button).interactable = !1,
                    this.isCount = !0,
                    this.getSmsCode = this.btnGetSmsCode.getChildByName("label").getComponent(cc.Label),
                    this.isCount === !1 && (this.btnGetSmsCode.opacity = 255, this.btnGetSmsCode.getComponent(cc.Button).interactable = !0, this.getSmsCode.string = this.dictLogic.getLanguage("122068")[1])
                }
            },
            resetPasswdSuccess: function() {
                var t = this.protocol.getFieldValue("ResetPasswdNewRespone", "result");
                switch (t) {
                case 0:
                    this.loginLogic.login(this.phoneString, this.newPswdString);
                    break;
                case - 1 : this.clientEvent.dispatchEvent("showOkMessage", "130011", !0);
                    break;
                case - 2 : this.clientEvent.dispatchEvent("showOkMessage", "130009", !0);
                    break;
                case - 3 : this.clientEvent.dispatchEvent("showOkMessage", "150112", !0);
                    break;
                case - 4 : this.clientEvent.dispatchEvent("showOkMessage", "130239", !0);
                    break;
                case - 5 : this.clientEvent.dispatchEvent("showOkMessage", "130309", !0)
                }
            },
            findPassword: function() {
                kf.require("util.buttonManager").open(this.node.parent, this.node.name, null)
            },
            closeFindPswd: function() {
                kf.require("util.buttonManager").close(this.node.parent, this.node.name, !1)
            },
            update: function(t) {
                this.isCount && (this.count -= t, this.getSmsCode.string = parseInt(this.count), this.count > 0 || (this.isCount = !1, this.btnGetSmsCode.opacity = 255, this.btnGetSmsCode.getComponent(cc.Button).interactable = !0, this.btnGetSmsCode.getChildByName("label").getComponent(cc.Label).string = this.dictLogic.getLanguage("122068")[1]))
            }
        }),
        cc._RFpop()
    },
    {}],
    fishContent: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "e2e16sm1EdFBLv6F7X6xtDd", "fishContent"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                fishItem: cc.Prefab
            },
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent"),
                this.hallLogic = kf.require("logic.hall"),
                this.canvas = cc.find("Canvas/hallScene/popup/activity"),
                this.noteData = [],
                this.complete_valueData = [],
                this.target_valueData = [],
                this.statusData = [],
                this.data_idData = [];
                for (var t = 0; t < this.hallLogic.acti_id.length; t++) 2003 === this.hallLogic.acti_id[t] && (this.noteData.push(this.hallLogic.note[t]), this.complete_valueData.push(this.hallLogic.complete_value[t]), this.target_valueData.push(this.hallLogic.target_value[t]), this.statusData.push(this.hallLogic.status[t]), this.data_idData.push(this.hallLogic.data_id[t]));
                this.contentPrefab()
            },
            start: function() {
                this.activityContentList()
            },
            contentPrefab: function() {
                for (var t = 0; t < this.noteData.length; t++) {
                    var e = cc.instantiate(this.fishItem);
                    this.node.addChild(e)
                }
                this.contentChild = this.node.children
            },
            activityContentList: function() {
                for (var t = 0; t < this.noteData.length; t++) {
                    var e = this.noteData[t],
                    i = this.complete_valueData[t],
                    n = this.target_valueData[t],
                    s = this.statusData[t],
                    o = this.data_idData[t],
                    a = this.canvas.getComponent("activity").rewardArr[2][t];
                    this.contentChild[t].getComponent("fishItem").fishInit(e, i, n, a, s, o)
                }
            }
        }),
        cc._RFpop()
    },
    {}],
    fishItem: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "9a98anDj+NHjo2aN8oWlmN6", "fishItem"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                note: cc.Label,
                target_value: cc.Label,
                money: cc.Label,
                btnLabel: cc.Label,
                btnNode: cc.Node,
                yiLingQu: cc.Node
            },
            onLoad: function() {
                this.hallLogic = kf.require("logic.hall"),
                this.dictLogic = kf.require("logic.dict"),
                this.roomLogic = kf.require("logic.room"),
                this.Image_success = cc.find("Canvas/hallScene/popup/activity/Image_success")
            },
            fishInit: function(t, e, i, n, s, o) {
                var a = this.node.getSiblingIndex(),
                r = i.slice(0, 3);
                switch ("108" === r ? cc.loader.loadResAll("fishPrefab/Fish_" + r,
                function(t, e) {
                    var i = cc.instantiate(e[0]);
                    i.scale = .5,
                    i.parent = this.node.getChildByName("Input"),
                    3 === s && this.node.setSiblingIndex(a + 10)
                }.bind(this)) : cc.loader.loadResAll("fishPrefab/Fish_" + r,
                function(t, e) {
                    var i = cc.instantiate(e[0]);
                    i.parent = this.node.getChildByName("Input"),
                    3 === s && this.node.setSiblingIndex(a + 10)
                }.bind(this)), this.note.string = t, this.target_value.string = e + "/" + i.slice(3, i.length + 1).replace(":", ""), e === i.slice(3, i.length + 1).replace(":", "") && (this.btnLabel.string = "可领取"), this.money.string = n / 1e4 + "万", s) {
                case 1:
                    this.btnLabel.string = "可领取";
                    break;
                case 2:
                    this.btnLabel.string = "去参加";
                    break;
                case 3:
                    this.btnNode.active = !1,
                    this.yiLingQu.active = !0
                }
                this.dataID = o
            },
            btnGo: function() {
                if ("可领取" === this.btnLabel.string) {
                    this.hallLogic.getActivityReward(2003, this.dataID),
                    this.btnNode.active = !1,
                    this.yiLingQu.active = !0,
                    this.Image_success.active = !0,
                    this.Image_success.getChildByName("jinbi").getChildByName("number").getComponent(cc.Label).string = this.money.string;
                    var t = this.node.getSiblingIndex();
                    this.node.setSiblingIndex(t + 10)
                } else this.roomLogic.fastIntoRoomRequest()
            }
        }),
        cc._RFpop()
    },
    {}],
    fishMoving: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "259fcDnSgFOc7PSLWzXKDHw", "fishMoving"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                id: 0,
                seatid: 0
            },
            onLoad: function() {
                this.roomLogic = kf.require("logic.room"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.protocol = kf.require("util.byteProtocol"),
                this.dictLogic = kf.require("logic.dict"),
                this.ready = !1,
                this.bDead = !1,
                this.speed = .1,
                this.speed_Nomal = .1,
                this.speed_Stop = 0,
                this.speedAddition = .35,
                this.persistNode = cc.find("persistNode").getComponent("persistNode"),
                this.registerEvent(),
                this.fishDiaPop = this.node.getComponent("diaPop")
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerEvent: function() {
                this.registerHandler = [["hitFishRespone", this.hitFishRespone.bind(this)], ["pushTypeFish", this.pushTypeFish.bind(this)], ["pushScreenFish", this.pushScreenFish.bind(this)], ["setFishSpeed", this.setFishSpeed.bind(this)], ["doubleRewardReady", this.doubleRewardReady.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            init: function(t) {
                this.id = t.fishFor.id,
                this.type = t.fishFor.Type,
                this.target = t.fishFor.Target,
                this.typeId = t.fishFor.FishTypeID,
                this.killByBomb = t.fishFor.KILLBYBOMB,
                this.baseScore = t.fishFor.BaseScore,
                this.coinData = void 0,
                this.speed_Nomal = t.speed,
                this.sceneId = t.sceneID,
                this.pathPercentage = t.per,
                this.radius = 72 * t.formation.Radius,
                this.angle = t.formation.Angle,
                this.aVelocity = t.formation.A_Velocity,
                this.rVelocity = t.formation.R_Velocity,
                this.sceneId = t.sceneID,
                this.path = this.dictLogic.convertPath(t.path),
                this.ready = !0,
                this.bDead = !1,
                this.previous = this.node.position,
                this.updateCount = 10,
                this.center = cc.p(0, 0),
                this.preCenter = cc.p(0, 0),
                this.previous = cc.p(0, 0),
                this.prePos = cc.p(0, 0),
                this.pts = this.dictLogic.pathControlPointGenerator(this.path);
                var e = this.dictLogic.interp(this.pts, 0);
                this.node.position = e,
                this.fishScene = cc.find("Canvas").getComponent("fishScene"),
                this.setFishSpeed(this.roomLogic.getFishSpeedType())
            },
            changeRotation: function() {
                if (0 === this.type || 0 === this.radius && 0 === this.rVelocity) {
                    var t = cc.pSub(this.node.position, this.previous),
                    e = cc.radiansToDegrees( - cc.pToAngle(t));
                    this.node.setRotation(e),
                    this.previous = this.node.position
                }
                if (1 === this.type && (0 !== this.radius || 0 !== this.rVelocity)) {
                    var i = cc.pSub(this.node.position, this.prePos);
                    if (0 === this.rVelocity) {
                        var n = cc.pSub(this.center, this.preCenter);
                        i = cc.pSub(i, n)
                    }
                    var e = cc.radiansToDegrees(cc.pToAngle(i));
                    180 === e && (e -= 180),
                    this.node.setRotation(e)
                }
            },
            updateCircle: function(t) {
                this.prePos = this.node.position,
                this.angle += this.aVelocity * t,
                this.radius += this.rVelocity * t;
                var e = -this.radius * Math.cos(cc.degreesToRadians(this.angle)),
                i = this.radius * Math.sin(cc.degreesToRadians(this.angle));
                this.node.position = cc.p(e + this.center.x, i + this.center.y)
            },
            update: function(t) {
                if (this.ready && !this.bDead) {
                    if (this.pathPercentage += t * this.speed, this.pathPercentage >= 1 || this.pathPercentage < 0) return this.fishDiaPop && this.fishDiaPop.init(),
                    void this.putInPool();
                    var e = this.dictLogic.interp(this.pts, this.pathPercentage); (0 === this.type || 0 === this.radius && 0 === this.rVelocity) && (this.node.position = e),
                    1 !== this.type || 0 === this.radius && 0 === this.rVelocity || (this.preCenter = this.center, this.center = e, this.updateCircle(t)),
                    this.updateCount++,
                    this.updateCount >= 3 && (this.updateCount = 0, this.changeRotation())
                }
            },
            hitFishRespone: function(t) {
                for (var e = 0; e < t.fishdata.length; e++) {
                    var i = this.protocol.getFieldValueEx(t.fishdata[e], "fishid");
                    if (i === this.id) {
                        this.seatid = t.seatid,
                        this.score = this.protocol.getFieldValueEx(t.fishdata[e], "score"),
                        this.coinData = kf.clone(t),
                        this.createCoin(),
                        this.bDead = !0;
                        for (var e = 0; e < this.node.children.length; e++) {
                            var n = this.node.children[e].getComponent("fish");
                            n && n.dead()
                        }
                        this.createCoin();
                        var s = Math.ceil(2 * cc.random0To1());
                        switch (this.typeId) {
                        case 108:
                            this.persistNode.playAudio("denglong" + s + "Audio");
                            break;
                        case 109:
                            this.persistNode.playAudio("wugui" + s + "Audio");
                            break;
                        case 113:
                            this.persistNode.playAudio("baisha" + s + "Audio");
                            break;
                        case 116:
                            this.persistNode.playAudio("jinqiang" + s + "Audio");
                            break;
                        case 120:
                            this.persistNode.playAudio("bianfu" + s + "Audio");
                            break;
                        case 121:
                            this.persistNode.playAudio("denglong" + s + "Audio");
                            break;
                        case 123:
                            this.persistNode.playAudio("wugui" + s + "Audio");
                            break;
                        case 124:
                            this.persistNode.playAudio("baisha" + s + "Audio");
                            break;
                        case 127:
                            this.persistNode.playAudio("denglong" + s + "Audio");
                            break;
                        case 128:
                            this.persistNode.playAudio("jinsha" + s + "Audio");
                            break;
                        case 129:
                            this.persistNode.playAudio("wugui" + s + "Audio");
                            break;
                        case 132:
                            this.persistNode.playAudio("baisha" + s + "Audio");
                            break;
                        case 134:
                            this.persistNode.playAudio("baisha" + s + "Audio");
                            break;
                        case 135:
                            this.node.getChildByName("Deadboom").getComponent(cc.Animation).play();
                            break;
                        case 138:
                            this.node.getChildByName("Deadboom").getComponent(cc.Animation).play()
                        }
                        switch (this.type) {
                        case 4:
                            var o = cc.find("Canvas/Game/Fish200003");
                            o.active = !0,
                            o.getComponent(cc.Animation).play(),
                            this.schedule(function() {
                                o.active = !1
                            },
                            1.5);
                            break;
                        case 5:
                            var a = "weapon" + this.seatid,
                            r = cc.find("Canvas/Game/" + a + "/Icon_Gold").position,
                            c = Math.abs(cc.pDistance(this.node.position, r)),
                            h = c / 1e3;
                            if (this.node.runAction(cc.moveTo(h, r)), t.uin !== kf.require("logic.login").getUin()) return;
                            var l = this.node.name.split("Fish_500")[1] - 0,
                            g = this.roomLogic.getTicketMultiple(this.seatid),
                            d = this.dictLogic.getLanguage("130024")[1] + l + "*" + g + this.dictLogic.getLanguage("130025")[1] + this.dictLogic.getLanguage("130026")[1];
                            d = kf.require("util.richlabel").createRichLabelColor(d);
                            var u = {
                                message: d,
                                showMask: !1
                            };
                            return void this.clientEvent.dispatchEvent("showGeneralLabel", u);
                        case 6:
                            var p = cc.find("Canvas/Game/BombBurst");
                            p.active = !0,
                            p.getComponent(cc.Animation).play(),
                            this.schedule(function() {
                                p.active = !1
                            },
                            1.5)
                        }
                        this.clientEvent.dispatchEvent("updateWeaponScore", this.score, this.seatid);
                        break
                    }
                }
            },
            pushTypeFish: function(t) {
                for (var e = 0; e < t.length; e++) this.typeId.toString() === t[e] && this.ready === !0 && this.bDead === !1 && this.roomLogic.fishTypeId.push(this.id)
            },
            pushScreenFish: function(t) {
                this.ready === !0 && this.bDead === !1 && 1 === this.killByBomb && t.push(this.id)
            },
            setFishSpeed: function(t) {
                if (this.ready === !0 && this.bDead === !1) switch (t) {
                case 0:
                    this.speed = this.speed_Stop;
                    break;
                case 1:
                    this.speed = this.speed_Nomal;
                    break;
                case 2:
                    if (this.sceneId === this.roomLogic.sceneId) return void this.setFishSpeed(1);
                    this.speed = this.speedAddition
                }
            },
            doubleRewardReady: function(t) {
                var e = this.protocol.getFieldValueEx(t, "fishInsId");
                e === this.id && this.clientEvent.dispatchEvent("getEnergyGun", this.node.position, this.protocol.getFieldValueEx(t, "seatId"))
            },
            putInPool: function() {
                this.ready = !1,
                this.roomLogic.putInPool(this.node.name, this.node)
            },
            createCoin: function() {
                void 0 !== this.coinData && 5 !== this.type && (this.coinData.position = this.node.position, this.fishScene.createCoin({
                    coinData: this.coinData,
                    baseScore: this.baseScore,
                    score: this.score,
                    seatid: this.seatid
                }))
            },
            changeColor: function() {
                for (var t = 0; t < this.node.children.length; t++) this.node.children[t].stopAllActions(),
                this.node.children[t].runAction(cc.sequence(cc.tintTo(0, 175, 110, 90), cc.tintTo(.4, 255, 255, 255)))
            },
            collisionFish: function(t) {
                this.roomLogic.saveHitFish(t.bulletOrder, this.id, this.type, this.target)
            }
        }),
        cc._RFpop()
    },
    {}],
    fishScene: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "4e4a4qIPddJT7VWxV8uNZaV", "fishScene"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                touchPoint: cc.Node,
                button_left: cc.Node,
                shooting: cc.Node,
                shootingOn: cc.Node,
                prize: cc.Prefab,
                competitiveChallenge: cc.Prefab,
                setting: cc.Prefab,
                shop: cc.Prefab,
                help: cc.Prefab,
                wave: cc.Prefab,
                broadcastNode: cc.Node,
                challengeRank: cc.Prefab,
                fish: cc.Node,
                bullet: cc.Node,
                net: cc.Node,
                background: cc.Prefab,
                backgroundSprite: [cc.SpriteFrame],
                sceneNameSprite: [cc.SpriteFrame],
                buttonJoin: [cc.Button],
                broadcast: cc.Node,
                refreshSpeed: 0,
                showBossInLabel: cc.Node
            },
            onLoad: function() {
                this.bulletOrder = 1,
                this.previous = cc.p(0, 0),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.roomLogic = kf.require("logic.room"),
                this.protocol = kf.require("util.byteProtocol"),
                this.loginLogic = kf.require("logic.login"),
                this.lang = kf.require("util.lang"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.dictLogic = kf.require("logic.dict"),
                this.hallLogic = kf.require("logic.hall"),
                this.gameNode = this.node.getChildByName("Game"),
                this.weapon1 = this.gameNode.getChildByName("weapon1").getChildByName("weapon"),
                this.weapon2 = this.gameNode.getChildByName("weapon2").getChildByName("weapon"),
                this.weapon3 = this.gameNode.getChildByName("weapon3").getChildByName("weapon"),
                this.weapon4 = this.gameNode.getChildByName("weapon4").getChildByName("weapon"),
                this.bkgParentNode = this.gameNode.getChildByName("background"),
                this.arenaAnimation = this.node.getChildByName("UI").getChildByName("arenaAnimation"),
                this.buttonMatch = this.node.getChildByName("UI").getChildByName("button_Match"),
                this.buttonPrize = this.node.getChildByName("UI").getChildByName("button_prize"),
                this.backgroundZOrder = 3,
                this.backgroundTag = this.backgroundZOrder,
                this.backgroundIndex = this.dictLogic.getSceneBackgroundTex(this.protocol.getFieldValue("SceneRespone", "sceneid")),
                this.hasEnergyGun = [],
                this.isChangeSeat = !0,
                this.isChallenge = !1,
                this.isMenuOpen = !1;
                var t = this;
                this.node.on("touchstart",
                function(e) {
                    t.previous = cc.p(e.getLocationX(), e.getLocationY()),
                    t.touchPoint.setPosition(t.previous),
                    t.touchPoint.change = !0;
                    var i = t.roomLogic.getPrefab("Drip");
                    i.parent = t.node;
                    var n = cc.pSub(t.previous, cc.p(cc.winSize.width / 2, cc.winSize.height / 2));
                    i.setPosition(n),
                    i.getComponent("drip").init()
                }),
                this.node.on("touchmove",
                function(e) {
                    var i = cc.p(e.getLocationX(), e.getLocationY());
                    cc.pDistance(i, t.previous < 3) || t.touchPoint.setPosition(i)
                }),
                this.node.on("touchend",
                function(e) {
                    t.shootingOn.active !== !0 && (t.touchPoint.change = !1)
                }),
                this.registerMsg(),
                this.initRoomName(),
                this.initBackground(),
                this.roomLogic.accountALMSInfoRequest(),
                this.hallLogic.setFirstIntoHall(!1)
            },
            start: function() {
                for (var t = 0; t < this.roomLogic.userData.length; t++) if (this.playerJoin(this.roomLogic.userData[t]), this.loginLogic.isPlayer(this.roomLogic.userData[t].uin)) {
                    var e = this.roomLogic.userData[t];
                    this.mySeatId = e.seatid;
                    var i = "weapon" + this.mySeatId;
                    this.myWeapon = this.gameNode.getChildByName(i),
                    this.myWeapon.getChildByName("YouAreHere").active = !0,
                    this.myWeapon.getChildByName("YouAreHere").getComponent(cc.Animation).play("youarehere"),
                    !this.isChallenge
                }
                this.clientEvent.dispatchEvent("showWaiting", !1),
                this.hallLogic.setButtonTouch(!0),
                !this.roomLogic.isAndroid
            },
            onDestroy: function() {
                this.unregisterEvent(),
                this.clientEvent.dispatchEvent("closeGeneralLabel"),
                this.roomLogic.releasePool(),
                this.roomLogic.cleanBulletNum()
            },
            registerMsg: function() {
                this.registerHandler = [["putFishInGame", this.putFishInGame.bind(this)], ["OutGame", this.returnHall.bind(this)], ["playerJoin", this.playerJoin.bind(this)], ["updateJoinButton", this.updateJoinButton.bind(this)], ["changeSeatRespone", this.changeSeatRespone.bind(this)], ["setAutomaticFire", this.setAutomaticFire.bind(this)], ["showBroadcast", this.showBroadcast.bind(this)], ["refreshScene", this.refreshScene.bind(this)], ["isChallenge", this.showChallengeRank.bind(this)], ["doubleRewardReady", this.energyGunReady.bind(this)], ["showEnergyGun", this.isEnergyGun.bind(this)], ["hideEnergyGun", this.isnotEnergyGun.bind(this)], ["challengeStart", this.challengeStart.bind(this)], ["receiveRelief", this.receiveRelief.bind(this)], ["showBossFishIn", this.showBossFishIn.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            closeMask: function() {
                this.myWeapon.getChildByName("YouAreHere").active = !1,
                this.node.getChildByName("mask" + this.mySeatId).active = !1
            },
            playerJoin: function(t) {
                for (var e = 0; e < 4; e++) t.seatid === e + 1 && (this.buttonJoin[e].node.active = !1);
                var i = "weapon" + t.seatid,
                n = this.gameNode.getChildByName(i),
                s = n.getComponent(cc.Animation).play();
                s.wrapMode = cc.WrapMode.Normal,
                n.getChildByName("weapon").getComponent("weapon").init(t),
                this.roomLogic.judgeRoomFlag(this.roomId),
                0 === t.score
            },
            returnHall: function() {
                cc.director.loadScene("hallScene2", this.change),
                cc.sys.garbageCollect()
            },
            quitLogin: function() {
                this.roomLogic.OutGameRequest()
            },
            outButtonClick: function() {
                var t = {
                    message: this.dictLogic.getLanguage("130037")[1],
                    button1: {
                        name: this.lang.get("MBCANCEL"),
                        frame: 0,
                        callback: function() {}
                    },
                    button3: {
                        name: this.lang.get("MBOK"),
                        frame: 1,
                        callback: function() {
                            this.clientEvent.dispatchEvent("showWaiting", !0),
                            this.quitLogin()
                        }.bind(this)
                    }
                };
                this.clientEvent.dispatchEvent("showMessage", t)
            },
            updateJoinButton: function(t) {
                this.scheduleOnce(function() {
                    this.buttonJoin[t - 1].node.active = !0
                },
                .5)
            },
            changeSeat: function(t, e) {
                if (!this.isChangeSeat) {
                    var i = {
                        message: this.dictLogic.getLanguage("150122")[1],
                        button2: {
                            name: this.lang.get("MBOK"),
                            frame: 1,
                            callback: function() {}
                        }
                    };
                    return void this.clientEvent.dispatchEvent("showMessage", i)
                }
                for (var n = 0; n < this.bullet.children.length; n++) if (this.bullet.children[n].getComponent("bullet").uin === this.loginLogic.getUin()) return void this.clientEvent.dispatchEvent("showOkMessage", "noChangeSeat", !1);
                this.roomLogic.changeSeatRequest(parseInt(e))
            },
            changeSeatRespone: function() {
                switch (this.protocol.getFieldValue("ChangeSeatRespone", "result")) {
                case 0:
                    for (var t = 0; t < this.roomLogic.userData.length; t++) if (this.loginLogic.isPlayer(this.roomLogic.userData[t].uin)) var e = this.roomLogic.userData[t].seatid,
                    i = this.roomLogic.userData[t];
                    var n = this.protocol.getFieldValue("ChangeSeatRespone", "seatId");
                    this.clientEvent.dispatchEvent("changeSeat", e, n, i);
                    break;
                case - 1 : break;
                case - 2 :
                }
            },
            change: function() {
                var t = cc.director.getScene().getChildByName("Canvas");
                t.getChildByName("loginScene").active = !1,
                t.getChildByName("hallScene").active = !0,
                t.getChildByName("hallScene").getComponent("hallScene").yesOrNo = !0
            },
            showBroadcast: function() {
                this.broadcastNode.active = !0
            },
            initRoomName: function() {
                cc.sys.garbageCollect(),
                this.roomId = this.protocol.getFieldValue("IntoGameRespone", "room_id");
                var t = this.dictLogic.getRoom(this.roomId).ROOM_NAME;
                switch (t) {
                case "room1":
                    this.node.getChildByName("sceneName").getComponent(cc.Label).string = this.dictLogic.getLanguage("140501")[1];
                    break;
                case "room2":
                    this.node.getChildByName("sceneName").getComponent(cc.Label).string = this.dictLogic.getLanguage("140502")[1];
                    break;
                case "room3":
                    this.node.getChildByName("sceneName").getComponent(cc.Label).string = this.dictLogic.getLanguage("140503")[1];
                    break;
                case this.dictLogic.getLanguage("311001")[1]:
                    this.node.getChildByName("sceneName").getComponent(cc.Label).string = this.dictLogic.getLanguage("311001")[1];
                    break;
                case this.dictLogic.getLanguage("311002")[1]:
                    this.node.getChildByName("sceneName").getComponent(cc.Label).string = this.dictLogic.getLanguage("311002")[1];
                    break;
                case this.dictLogic.getLanguage("311008")[1]:
                    this.node.getChildByName("sceneName").getComponent(cc.Label).string = this.dictLogic.getLanguage("311008")[1];
                    break;
                case this.dictLogic.getLanguage("311009")[1]:
                    this.node.getChildByName("sceneName").getComponent(cc.Label).string = this.dictLogic.getLanguage("311009")[1];
                    break;
                case this.dictLogic.getLanguage("311005")[1]:
                    this.node.getChildByName("sceneName").getComponent(cc.Label).string = this.dictLogic.getLanguage("311005")[1];
                    break;
                case this.dictLogic.getLanguage("311006")[1]:
                    this.node.getChildByName("sceneName").getComponent(cc.Label).string = this.dictLogic.getLanguage("311006")[1]
                }
            },
            initBackground: function() {
                var t = cc.instantiate(this.background);
                this.bkgParentNode.addChild(t, this.backgroundZOrder, this.backgroundZOrder),
                this.backgroundZOrder--,
                t.position = cc.p( - 640, 0),
                t.getComponent(cc.Sprite).spriteFrame = this.backgroundSprite[this.backgroundIndex]
            },
            refreshScene: function() {
                this.backgroundIndex = this.dictLogic.getSceneBackgroundTex(this.protocol.getFieldValue("SceneRespone", "sceneid")),
                this.initBackground(),
                this.waveNode = cc.instantiate(this.wave),
                this.gameNode.addChild(this.waveNode),
                this.waveNode.getComponent(cc.Animation).play(),
                this.wavePosX = 710,
                this.waveNode.position = cc.p(this.wavePosX, 0),
                this.bkg = this.bkgParentNode.getChildByTag(this.backgroundTag).getComponent(cc.ProgressBar),
                this.schedule(this.updateBackground, .02),
                this.clientEvent.dispatchEvent("setWeaponPause", !1)
            },
            updateBackground: function() {
                this.wavePosX -= this.refreshSpeed,
                this.waveNode.position = cc.p(this.wavePosX, 0),
                this.bkg.progress = (this.wavePosX + 570) / 1280,
                this.bkg.progress <= 0 && (this.unschedule(this.updateBackground), this.bkgParentNode.getChildByTag(this.backgroundTag).destroy(), this.bkgParentNode.removeChild(this.bkgParentNode.getChildByTag(this.backgroundTag)), this.backgroundTag--, this.waveNode.destroy(), this.waveNode.removeFromParent(), this.clientEvent.dispatchEvent("setWeaponPause", !0), cc.sys.garbageCollect())
            },
            showChallengeRank: function() {
                if (this.node.getChildByName("challengeRank")) this.node.getChildByName("challengeRank").active = !0;
                else {
                    var t = cc.instantiate(this.challengeRank);
                    this.node.addChild(t)
                }
                this.arenaAnimation.active = !1,
                this.buttonMatch.active = !1,
                this.buttonPrize.active = !1,
                4 === this.protocol.getFieldValue("protoChallengeStatusNotify", "status") && (this.isChallenge = !0)
            },
            energyGunReady: function() {
                var t = this.protocol.getFieldValue("protoDoubleRewardReady", "seatId"),
                e = this.roomLogic.getSeatIdByUin(this.loginLogic.getUin());
                e === t && (this.isChangeSeat = !1)
            },
            isEnergyGun: function() {
                this.hasEnergyGun.push(this.protocol.getFieldValue("protoDoubleRewardNotice", "seatId"))
            },
            isnotEnergyGun: function() {
                this.isChangeSeat = !0;
                for (var t = 0; t < this.hasEnergyGun.length; t++) if (this.hasEnergyGun[t] == this.protocol.getFieldValue("protoDoubleRewardNotice", "seatId")) {
                    this.hasEnergyGun.splice(t, 1);
                    break
                }
            },
            challengeStart: function() {
                var t = this.protocol.getFieldValue("protoChallengeStatusNotify", "status");
                5 === t && (this.node.getChildByName("mask" + this.mySeatId).getComponent(cc.Animation).play(), this.scheduleOnce(this.closeMask, 3), this.isChallenge = !1)
            },
            showBossFishIn: function(t) {
                if (1 != this.showBossInLabel.active) {
                    this.showBossInLabel.active = !0;
                    var e = this.showBossInLabel.getChildByName("label").getComponent(cc.Label);
                    e.string = t.BaseScore + this.lang.get("bossIn");
                    var i = cc.callFunc(function() {
                        this.showBossInLabel.active = !1
                    }.bind(this)),
                    n = cc.sequence(cc.delayTime(1.5), i);
                    this.showBossInLabel.runAction(n)
                }
            },
            receiveRelief: function() {
                this.clientEvent.dispatchEvent("showWaiting", !0),
                this.quitLogin();
                var t = this.dictLogic.getLanguage("130002")[1] + (3 - this.roomLogic.accountALMSCount) + this.dictLogic.getLanguage("130003")[1];
                t = kf.require("util.richlabel").createRichLabelColor(t);
                var e = this.protocol.getFieldValue("LoginRespone", "defaultalms"),
                i = this.dictLogic.getLanguage("130004")[1] + e + this.dictLogic.getLanguage("130005")[1];
                i = kf.require("util.richlabel").createRichLabelColor(i);
                var n = {
                    title: !1,
                    message1: t,
                    message2: i,
                    button2: {
                        name: this.lang.get("MBRECEIVE"),
                        frame: 1,
                        callback: function() {
                            kf.require("logic.room").accountALMSRequest()
                        }
                    }
                };
                this.clientEvent.dispatchEvent("showMessage", n)
            },
            menu: function() {
                if (this.isMenuOpen) {
                    if (this.isMenuOpen) {
                        var t = this.button_left.getComponent(cc.Animation).play();
                        t.wrapMode = cc.WrapMode.Reverse,
                        this.isMenuOpen = !1
                    }
                } else {
                    var t = this.button_left.getComponent(cc.Animation).play();
                    t.wrapMode = cc.WrapMode.Normal,
                    this.isMenuOpen = !0
                }
            },
            shoot: function() {
                this.shooting.active = !0,
                this.shootingOn.active = !1,
                this.touchPoint.change = !1
            },
            shootOn: function() {
                this.shooting.active = !1,
                this.shootingOn.active = !0,
                this.touchPoint.change = !0
            },
            setAutomaticFire: function(t) {
                t || this.shoot()
            },
            prizePopup: function() {
                this.buttonManager.open(this.node, "prize", this.prize)
            },
            competitiveChallenge1: function() {
                this.buttonManager.open(this.node, "competitiveChallenge", this.competitiveChallenge)
            },
            setting1: function() {
                this.buttonManager.open(this.node, "setting", this.setting)
            },
            shop1: function() {
                this.buttonManager.open(this.node, "shop", this.shop)
            },
            help1: function() {
                this.buttonManager.open(this.node, "help", this.help)
            },
            getNewBulletPosition: function(t) {
                var e = this["weapon" + t.id],
                i = e.position,
                n = cc.p(i.x, i.y + 40),
                s = e.getRotation(),
                o = cc.pRotateByAngle(n, i, cc.degreesToRadians( - s));
                return [o, s]
            },
            putFishInGame: function(t) {
                t.fish.parent = this.fish,
                t.fish.getComponent("fishMoving").init(t);
                var e = t.fish.getComponent("diaPop");
                e && e.init();
                for (var i = 0; i < t.fish.children.length; i++) {
                    var n = t.fish.children[i].getComponent("fish");
                    n && n.init()
                }
            },
            update: function(t) {
                this.roomLogic.update(t)
            },
            createCoin: function(t) {
                var e, i;
                t.baseScore < 10 ? (e = 1, i = t.baseScore / 2) : (e = 0, i = t.baseScore / 10);
                var n = this.roomLogic.getPrefab("Coin");
                n.parent = this.gameNode,
                n.getChildByName("Coin").getComponent("coin").init(t.coinData, t.seatid, e),
                n.setPosition(t.coinData.position);
                var s = this.roomLogic.getPrefab("money");
                if (s.parent = this.gameNode, s.getChildByName("label").getComponent("money").init(t), s.setPosition(t.coinData.position), t.baseScore >= 40) {
                    var o = this.roomLogic.getPrefab("goldDown");
                    o.parent = this.gameNode,
                    o.position = t.coinData.position,
                    o.getComponent("goldDown").init()
                }
            },
            createNet: function(t) {
                var e = this.roomLogic.getPrefab("Net");
                e.parent = this.net,
                e.setPosition(t.position),
                e.getComponent("net").init(t)
            },
            createBullet: function(t) {
                t.previous = this.previous,
                t.bulletOrder = this.bulletOrder++;
                var e = this.roomLogic.getPrefab("bullet");
                e.parent = this.bullet;
                var i = this.getNewBulletPosition(t);
                e.setPosition(i[0]),
                e.setRotation(i[1]),
                e.getComponent("bullet").init(t),
                e.getComponent("bullet").redirect()
            }
        }),
        cc._RFpop()
    },
    {}],
    fishingMaster: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "5fee8HMGWVFyqzT5GHU7P39", "fishingMaster"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                topItem: cc.Prefab,
                masterDesk: cc.Prefab
            },
            onLoad: function() {
                this.dictLogic = kf.require("logic.dict"),
                this.hallLogic = kf.require("logic.hall"),
                this.protocol = kf.require("util.byteProtocol"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.roomLogic = kf.require("logic.room"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.canvas = cc.find("Canvas"),
                this.windows1 = this.node.getChildByName("windows_Blue02_1"),
                this.windows2 = this.node.getChildByName("windows_Blue02_2"),
                this.rule = this.windows2.getChildByName("rule"),
                this.today = this.windows2.getChildByName("today"),
                this.yesterday = this.windows2.getChildByName("yesterday"),
                this.vipLabel = this.windows2.getChildByName("vip"),
                this.ruleContent = this.windows2.getChildByName("ruleContent"),
                this.ruleLabelContent = this.ruleContent.getChildByName("view").getChildByName("content"),
                this.ruleLabel = this.ruleLabelContent.getChildByName("substance"),
                this.firstLabel = this.ruleLabelContent.getChildByName("first").getChildByName("numberSpr").getChildByName("number").getComponent(cc.Label),
                this.secondLabel = this.ruleLabelContent.getChildByName("second").getChildByName("numberSpr").getChildByName("number").getComponent(cc.Label),
                this.thirdLabel = this.ruleLabelContent.getChildByName("third").getChildByName("numberSpr").getChildByName("number").getComponent(cc.Label),
                this.fourthLabel = this.ruleLabelContent.getChildByName("fourth").getChildByName("numberSpr").getChildByName("number").getComponent(cc.Label),
                this.fivth = this.ruleLabelContent.getChildByName("fivth"),
                this.fivthLabel = this.fivth.getChildByName("numberSpr").getChildByName("number").getComponent(cc.Label),
                this.ranking = this.windows2.getChildByName("ranking"),
                this.myRankLabel = this.ranking.getChildByName("label1").getChildByName("ranking").getComponent(cc.Label),
                this.myScoreLabel = this.ranking.getChildByName("label2").getChildByName("score").getComponent(cc.Label),
                this.rankParentNode = this.ranking.getChildByName("view").getChildByName("content"),
                this.getRewardButton = this.ranking.getChildByName("getRewardButton"),
                this.vip = this.protocol.getFieldValue("LoginRespone", "vip"),
                this.scrollContentHeight = this.rankParentNode.height,
                this.registerEvent()
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerEvent: function() {
                this.registerHandler = [["setQueryDictReward", this.setArenaRankReward.bind(this)], ["showArenaRank", this.showArenaRank.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            init: function() {
                this.roomId = 0,
                this.roomType = 0,
                this.roomRealId = 0,
                this.dateFlag = 0,
                this.reqId = 0,
                this.arenaRankArr = []
            },
            closePopUp: function() {
                this.windows1.active ? this.buttonManager.close(this.node.parent, this.node.name, !1) : (this.windows1.active = !0, this.windows2.active = !1)
            },
            room1ButtonClick: function() {
                this.windows1.active = !1,
                this.windows2.active = !0,
                this.ruleButtonClick(),
                this.setVipLabel();
                var t = this.dictLogic.getLanguage("140506")[1];
                t = this.hallLogic.setRichTextColor(t),
                this.ruleLabel.getComponent(cc.RichText).string = t,
                this.ruleLabelContent.height = 590,
                this.fivth.active = !0,
                this.roomId = this.dictLogic.getRoomIdByName("近海专家区"),
                this.roomType = 1,
                this.reqId = this.hallLogic.REWARD_ID.FISHINGMASTER_ROOM1,
                this.requestueryDictReward()
            },
            room2ButtonClick: function() {
                this.windows1.active = !1,
                this.windows2.active = !0,
                this.ruleButtonClick(),
                this.setVipLabel();
                var t = this.dictLogic.getLanguage("140507")[1];
                t = this.hallLogic.setRichTextColor(t),
                this.ruleLabel.getComponent(cc.RichText).string = t,
                this.ruleLabelContent.height = 530,
                this.fivth.active = !1,
                this.roomId = this.dictLogic.getRoomIdByName("深海大师区"),
                this.roomType = 2,
                this.reqId = this.hallLogic.REWARD_ID.FISHINGMASTER_ROOM2,
                this.requestueryDictReward()
            },
            setVipLabel: function() {
                if (0 === this.vip) this.vipLabel.active = !1;
                else {
                    var t = this.dictLogic.getLanguage("140875")[1];
                    t = this.hallLogic.setFishingMasterVipLabel(t, this.vip),
                    this.vipLabel.getComponent(cc.Label).string = t,
                    this.vipLabel.active = !0
                }
            },
            ruleButtonClick: function() {
                this.rule.getChildByName("rule2").active = !0,
                this.today.getChildByName("today2").active = !1,
                this.yesterday.getChildByName("yesterday2").active = !1,
                this.ruleContent.active = !0,
                this.ranking.active = !1,
                this.rule.getComponent(cc.Button).interactable = !1,
                this.today.getComponent(cc.Button).interactable = !0,
                this.yesterday.getComponent(cc.Button).interactable = !0
            },
            todayButtonClick: function() {
                this.rule.getChildByName("rule2").active = !1,
                this.today.getChildByName("today2").active = !0,
                this.yesterday.getChildByName("yesterday2").active = !1,
                this.rule.getComponent(cc.Button).interactable = !0,
                this.today.getComponent(cc.Button).interactable = !1,
                this.yesterday.getComponent(cc.Button).interactable = !0,
                this.ruleContent.active = !1,
                this.ranking.active = !0,
                this.ranking.getChildByName("label3").active = !0,
                this.ranking.getChildByName("intoGameButton").active = !0,
                this.ranking.getChildByName("getRewardButton").active = !1,
                this.dateFlag = 1,
                this.requestRank()
            },
            yesterdayButtonClick: function() {
                this.rule.getChildByName("rule2").active = !1,
                this.today.getChildByName("today2").active = !1,
                this.yesterday.getChildByName("yesterday2").active = !0,
                this.rule.getComponent(cc.Button).interactable = !0,
                this.today.getComponent(cc.Button).interactable = !0,
                this.yesterday.getComponent(cc.Button).interactable = !1,
                this.ruleContent.active = !1,
                this.ranking.active = !0,
                this.ranking.getChildByName("label3").active = !1,
                this.ranking.getChildByName("intoGameButton").active = !1,
                this.ranking.getChildByName("getRewardButton").active = !1,
                this.dateFlag = 0,
                this.requestRank()
            },
            requestueryDictReward: function() {
                this.hallLogic.queryDictRewardRequest(this.roomId, this.reqId)
            },
            requestRank: function() {
                this.hallLogic.arenaRankRequest(this.roomId, this.dateFlag)
            },
            getRewardButtonClick: function() {
                this.hallLogic.arenaRewardRequest(this.roomId),
                this.getRewardButton.getChildByName("getReward").active = !1,
                this.getRewardButton.getChildByName("hadGetReward").active = !0,
                this.getRewardButton.getComponent(cc.Button).interactable = !1
            },
            setArenaRankReward: function() {
                var t = this.protocol.getFieldValue("protoQueryDictRewardResponse", "reqId");
                if (t === this.hallLogic.REWARD_ID.FISHINGMASTER_ROOM1 || t === this.hallLogic.REWARD_ID.FISHINGMASTER_ROOM2) {
                    for (var e = this.protocol.getFieldValue("protoQueryDictRewardResponse", "rewardList"), i = [], n = 0; n < e.length; n++) i[n] = this.protocol.getFieldValueEx(e[n], "ticket_num");
                    switch (t) {
                    case this.hallLogic.REWARD_ID.FISHINGMASTER_ROOM1:
                        this.firstLabel.string = i[0],
                        this.secondLabel.string = i[1],
                        this.thirdLabel.string = i[2],
                        this.fourthLabel.string = i[3],
                        this.fivthLabel.string = i[4];
                        break;
                    case this.hallLogic.REWARD_ID.FISHINGMASTER_ROOM1:
                        this.firstLabel.string = i[0],
                        this.secondLabel.string = i[1],
                        this.thirdLabel.string = i[2],
                        this.fourthLabel.string = i[3];
                        break;
                    default:
                        return
                    }
                }
            },
            showArenaRank: function() {
                this.deleteArenaRank(),
                this.myRankLabel.string = this.protocol.getFieldValue("ArenaRankResponeNew", "rank"),
                this.myScoreLabel.string = this.protocol.getFieldValue("ArenaRankResponeNew", "score");
                var t = this.protocol.getFieldValue("ArenaRankResponeNew", "reward_flag");
                0 !== this.myRankLabel.string && 0 === this.protocol.getFieldValue("ArenaRankResponeNew", "date_flag") && (this.getRewardButton.active = !0, 0 === t ? (this.getRewardButton.getChildByName("getReward").active = !0, this.getRewardButton.getChildByName("hadGetReward").active = !1, this.getRewardButton.getComponent(cc.Button).interactable = !0) : 1 === t && (this.getRewardButton.getChildByName("getReward").active = !1, this.getRewardButton.getChildByName("hadGetReward").active = !0, this.getRewardButton.getComponent(cc.Button).interactable = !1)),
                this.arenaRankArr = this.protocol.getFieldValue("ArenaRankResponeNew", "rank_list");
                for (var e = 0; e < this.arenaRankArr.length; e++) {
                    var i = cc.instantiate(this.topItem);
                    this.rankParentNode.addChild(i),
                    i.getComponent("topItem").arenaRankInit(this.arenaRankArr[e])
                }
                if (this.arenaRankArr.length > 4) {
                    var n = this.arenaRankArr.length - 4;
                    this.rankParentNode.height = n * this.topItem.data.getContentSize().height + this.scrollContentHeight
                } else this.rankParentNode.height = this.scrollContentHeight
            },
            deleteArenaRank: function() {
                this.rankParentNode.removeAllChildren()
            },
            gameButtonClick: function() {
                var t = this.protocol.getFieldValue("RoomListRespone", "room_data");
                if (this.roomRealId = this.protocol.getFieldValueEx(t[this.roomType], "room_id"), this.roomRealId === this.dictLogic.getRoomIdByName("room2") - 0) this.roomLogic.intoGameRequest(this.roomRealId);
                else if (this.roomRealId === this.dictLogic.getRoomIdByName("room3") - 0) {
                    var e = this.node.getComponent(cc.Animation).play();
                    e.wrapMode = cc.WrapMode.Reverse,
                    this.canvas.getChildByName("hallScene").active === !0 && (this.node.parent.parent.getChildByName("room").getComponent(cc.Animation).play("room"), this.node.parent.parent.getComponent("hallScene").intoRoom3Request()),
                    this.scheduleOnce(function() {
                        this.node.active = !1
                    },
                    .5)
                }
            }
        }),
        cc._RFpop()
    },
    {}],
    fish: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "dc95emqgulP+b1MGIzoU6oI", "fish"),
        cc.Class({
            "extends": cc.Component,
            properties: {},
            onLoad: function() {
                if (this.loginLogic = kf.require("logic.login"), this.collider = this.node.getComponent(cc.Collider), this.fishMoving = this.node.parent.getComponent("fishMoving"), this.animation = this.node.getComponent(cc.Animation), this.animation) {
                    this.source = kf.require("logic.dict").getFishSourceByName(this.node.name),
                    this.source || (this.source = 0);
                    var t = 0 === this.source ? this.node.name: "Fish_" + this.source;
                    this.animationName = t + "_Run";
                    var e = t + "_Dead",
                    i = this.animation.getAnimationState(e);
                    i && (this.animationDead = e, i.on("finished", this.onFinished, this))
                }
            },
            init: function() {
                this.node.color = cc.Color.WHITE,
                this.animation && (this.animation.play(this.animationName), this.collider && (this.collider.enabled = !0))
            },
            onCollisionEnter: function(t, e) {
                if (0 === t.tag) {
                    var i = t.node.getComponent("bullet");
                    this.loginLogic.isPlayer(i.uin) && this.fishMoving.changeColor()
                }
            },
            onCollisionExit: function(t, e) {
                if (3 === t.tag) {
                    var i = t.node.getComponent("net");
                    this.loginLogic.isPlayer(i.uin) && this.fishMoving.collisionFish(i)
                }
            },
            dead: function() {
                if (this.collider && (this.collider.enabled = !1), this.node.color = cc.Color.WHITE, this.animationDead) 0 === this.source ? this.animation.playAdditive(this.animationDead) : this.animation.play(this.animationDead);
                else {
                    var t = cc.callFunc(function() {
                        this.onFinished()
                    }.bind(this));
                    this.node.runAction(cc.sequence(cc.delayTime(1.6), t))
                }
            },
            onFinished: function() {
                this.fishMoving.putInPool()
            }
        }),
        cc._RFpop()
    },
    {}],
    freeGold: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "8bb45YQdqFDFrxd6QzVGDLu", "freeGold"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                btnFrendShare: cc.Node,
                labFrendShare: cc.Label,
                btnDailyTask: cc.Node,
                labDailyTask: cc.Label,
                btnPointPackage: cc.Node,
                labPointPackage: cc.Label,
                btnDailySign: cc.Node,
                labDailySign: cc.Label,
                btnBindPhone: cc.Node,
                labBindPhone: cc.Label,
                frendSharePre: cc.Prefab,
                dailyTaskPre: cc.Prefab,
                pointPackagePre: cc.Prefab,
                dailySignPre: cc.Prefab,
                bindPhoneePre: cc.Prefab
            },
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent"),
                this.protocol = kf.require("util.byteProtocol"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.taskLogic = kf.require("logic.task"),
                this.dictLogic = kf.require("logic.dict"),
                this.richlabel = kf.require("util.richlabel"),
                this.registerEvent()
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerEvent: function() {
                this.registerHandler = [["showFreeGoldLabel", this.showFreeGoldLabel.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            init: function() {
                if (this.protocol.getFieldValue("LoginRespone", "mobile")) this.btnBindPhone.getComponent(cc.Animation).stop(),
                this.btnBindPhone.getComponent(cc.Button).enable = !1,
                this.labBindPhone.string = this.dictLogic.getLanguage("150314")[1];
                else {
                    this.btnBindPhone.getComponent(cc.Animation).play(),
                    this.btnBindPhone.getComponent(cc.Button).enable = !0;
                    var t = this.dictLogic.getLanguage("150314")[1];
                    t = this.richlabel.replaceString(t, 1e4),
                    this.labBindPhone.string = t
                }
                this.taskLogic.queryShareInfoRequest(),
                this.taskLogic.queryLivenessTaskInfoRequest(),
                this.taskLogic.querySharpTimeGiftRequest(),
                this.taskLogic.querySignInRequest()
            },
            close: function() {
                this.buttonManager.close(this.node.parent, this.node.name, !0)
            },
            dailyTaskButtonClick: function() {
                this.buttonManager.open(this.node.parent, "dailyTask", this.dailyTaskPre),
                this.close()
            },
            signInButtonClick: function() {
                this.buttonManager.open(this.node.parent, "dailySign", this.dailySignPre),
                this.close()
            },
            showFreeGoldLabel: function() {
                this.labFrendShare.string = this.taskLogic.getLeftCanShareLabel(),
                this.labDailyTask.string = this.taskLogic.getLeftDailyTaskLabel(),
                this.taskLogic.getHasSignIn() ? (this.labDailySign.string = this.dictLogic.getLanguage("150312")[1], this.btnDailySign.getComponent(cc.Animation).stop()) : (this.labDailySign.string = this.taskLogic.getLeftSignInLabel(), this.btnDailySign.getComponent(cc.Animation).play())
            }
        }),
        cc._RFpop()
    },
    {}],
    gameItem: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "3870eNasIxFxacjOz4aFdVa", "gameItem"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                competRule: cc.Prefab
            },
            onLoad: function() {
                this.dictLogic = kf.require("logic.dict"),
                this.hallLogic = kf.require("logic.hall"),
                this.protocol = kf.require("util.byteProtocol"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.roomLogic = kf.require("logic.room"),
                this.richlabel = kf.require("util.richlabel"),
                this.lang = kf.require("util.lang"),
                this.competitiveChallenge = this.node.parent.parent.parent.parent.parent,
                this.titleSprite = this.node.getChildByName("Gold_6").getChildByName("titleSprite").getComponent(cc.Sprite),
                this.peopleNumberLabel = this.node.getChildByName("peopleNumber").getChildByName("number").getComponent(cc.Label),
                this.gameNameLabel = this.node.getChildByName("title").getChildByName("gameName").getComponent(cc.Label),
                this.dateLabel = this.node.getChildByName("countdown").getComponent(cc.Label),
                this.beginTimeLabel = this.node.getChildByName("time").getChildByName("number").getComponent(cc.Label),
                this.useMoneyLabel = this.node.getChildByName("fee").getChildByName("number").getComponent(cc.Label),
                this.gameButton = this.node.getChildByName("applyButton"),
                this.gameStateLabel = this.gameButton.getChildByName("gameState").getComponent(cc.Label),
                this.isCount = !1,
                this.registerEvent()
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerEvent: function() {
                this.registerHandler = [["challengeSignUp", this.challengeSignUp.bind(this)], ["recordTime", this.recordTime.bind(this)], ["challengeStart", this.updateDuration.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            init: function(t, e) {
                this.beginTime = this.protocol.getFieldValueEx(t, "beginTime"),
                this.status = this.protocol.getFieldValueEx(t, "status");
                var i = this.protocol.getFieldValueEx(t, "icon");
                this.roomId = this.protocol.getFieldValueEx(t, "roomId"),
                this.duration = this.protocol.getFieldValueEx(t, "duration"),
                this.scheduleId = this.protocol.getFieldValueEx(t, "scheduleId"),
                this.roomFlag = e;
                var n = this.beginTime.split(" "),
                s = this.richlabel.getTimeString(n[1]);
                if (0 === this.duration) var o = this.richlabel.getDateString(n[0]);
                else var o = this.richlabel.getGameTimeString(this.beginTime, this.duration);
                if (this.costString = this.protocol.getFieldValueEx(t, "cost"), this.costString > 1e4) var a = this.costString / 1e4 + this.dictLogic.getLanguage("130056")[1];
                else var a = this.costString;
                this.gameNameLabel.string = this.protocol.getFieldValueEx(t, "roomName"),
                this.peopleNumberLabel.string = this.protocol.getFieldValueEx(t, "number"),
                this.dateLabel.string = o,
                this.useMoneyLabel.string = a,
                this.deltaTime = 0;
                var r = kf.require("logic.bag").getItemPngUrl(i);
                if (cc.loader.load(r,
                function(t, e) {
                    var i = new cc.SpriteFrame;
                    i.initWithTexture(e),
                    this.titleSprite.spriteFrame = i
                }.bind(this)), this.gameStatus(), !(this.status >= 7 && this.status < 10)) if (this.duration < 3600) {
                    var c = this.richlabel.countDownTime(this.duration);
                    this.beginTimeLabel.string = c,
                    this.duration -= 1,
                    this.isCount = !0
                } else this.beginTimeLabel.string = s,
                this.isCount = !1
            },
            gameStatus: function() {
                switch (this.status) {
                case 0:
                    this.gameStateLabel.string = this.lang.get("notOpen"),
                    this.gameButton.getComponent(cc.Button).interactable = !1;
                    break;
                case 1:
                    break;
                case 2:
                    this.gameStateLabel.string = this.lang.get("signUp"),
                    this.gameButton.getComponent(cc.Button).interactable = !0;
                    break;
                case 3:
                    break;
                case 4:
                    this.gameStateLabel.string = this.lang.get("inGame"),
                    this.gameButton.getComponent(cc.Button).interactable = !0,
                    this.dateLabel.string = this.dictLogic.getLanguage("130363")[1];
                    break;
                case 5:
                    break;
                case 6:
                    this.gameStateLabel.string = this.lang.get("inGame"),
                    this.gameButton.getComponent(cc.Button).interactable = !0,
                    this.dateLabel.string = this.dictLogic.getLanguage("150003")[1];
                    break;
                case 7:
                    break;
                case 8:
                    this.gameStateLabel.string = this.lang.get("settlementIn"),
                    this.gameButton.getComponent(cc.Button).interactable = !1;
                    break;
                case 9:
                    this.gameStateLabel.string = this.lang.get("close"),
                    this.gameButton.getComponent(cc.Button).interactable = !1;
                    break;
                case 10:
                    this.gameStateLabel.string = this.lang.get("hasSignUp"),
                    this.gameButton.getComponent(cc.Button).interactable = !1;
                    break;
                case 998:
                    break;
                case 999:
                }
            },
            gameRuleButtonClick: function() {
                var t = {
                    roomId: this.roomId,
                    cost: this.costString,
                    beginTime: this.beginTime,
                    scheduleId: this.scheduleId
                },
                e = cc.instantiate(this.competRule);
                this.competitiveChallenge.addChild(e),
                e.getComponent("competRule").init(t),
                e.getComponent(cc.Animation).play()
            },
            applyButtonClick: function() {
                if (this.status < 3) if (0 === this.costString) this.hallLogic.challengeSignUpRequest(this.roomId, this.scheduleId);
                else {
                    var t = this,
                    e = {
                        message: this.lang.get("confirmUse") + this.richlabel.replaceString(this.dictLogic.getLanguage("150315")[1], this.costString / 1e4) + this.lang.get("signUpGame"),
                        button1: {
                            name: this.lang.get("MBCANCEL"),
                            frame: 1,
                            callback: function() {}
                        },
                        button3: {
                            name: this.lang.get("MBOK"),
                            frame: 0,
                            callback: function() {
                                t.challengeSignUpRequest()
                            }
                        }
                    };
                    this.clientEvent.dispatchEvent("showMessage", e)
                } else this.status < 7 && (this.clientEvent.dispatchEvent("showWaiting", !0), this.roomLogic.setScheduleId(this.roomId, this.scheduleId, this.duration), this.roomLogic.intoGameRequest(this.roomId))
            },
            challengeSignUpRequest: function() {
                this.hallLogic.challengeSignUpRequest(this.roomId, this.scheduleId)
            },
            challengeSignUp: function() {
                if (this.protocol.getFieldValue("protoChallengeSignUpResponse", "scheduleId") === this.scheduleId) {
                    var t = this.protocol.getFieldValue("protoChallengeSignUpResponse", "result"),
                    e = "";
                    switch (t) {
                    case 0:
                        return this.gameStateLabel.string = this.lang.get("hasSignUp"),
                        this.gameButton.getComponent(cc.Button).interactable = !1,
                        void(this.peopleNumberLabel.string = this.protocol.getFieldValue("protoChallengeSignUpResponse", "number"));
                    case 1:
                        e = this.dictLogic.getLanguage("130460")[1];
                        break;
                    case 2:
                        e = this.dictLogic.getLanguage("130459")[1];
                        break;
                    case 3:
                        e = this.dictLogic.getLanguage("130456")[1];
                        break;
                    case 4:
                        e = this.dictLogic.getLanguage("130458")[1];
                        break;
                    case 5:
                        e = this.dictLogic.getLanguage("150114")[1]
                    }
                    this.clientEvent.dispatchEvent("showOkMessage", e, !0)
                }
            },
            recordTime: function() {
                this.protocol.getFieldValue("protoChallengeStatusNotify", "scheduleId") === this.scheduleId && (this.roomLogic.setScheduleId(this.roomId, this.scheduleId, this.duration), this.clientEvent.dispatchEvent("showWaiting", !0), this.roomLogic.intoGameRequest(this.roomId))
            },
            updateDuration: function() {
                this.duration = this.protocol.getFieldValue("protoChallengeStatusNotify", "duration"),
                this.status = this.protocol.getFieldValue("protoChallengeStatusNotify", "status"),
                this.gameStatus()
            },
            update: function(t) {
                if (this.isCount && (this.deltaTime += t, !(this.deltaTime < .3))) {
                    this.duration -= this.deltaTime,
                    this.deltaTime = 0,
                    this.duration < 0 && (this.hallLogic.challengeListRequest(this.roomFlag), this.duration = 0, this.isCount = !1);
                    var e = this.richlabel.countDownTime(Math.ceil(this.duration));
                    this.beginTimeLabel.string = e
                }
            }
        }),
        cc._RFpop()
    },
    {}],
    generalLabel: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "6c00cgmShdHP5TGRnTKZVCQ", "generalLabel"),
        cc.Class({
            "extends": cc.Component,
            properties: {},
            onLoad: function() {
                cc.game.addPersistRootNode(this.node),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.maskSprite = this.node.getChildByName("Image_RadioBack"),
                this.messageLabel = this.node.getChildByName("message").getComponent(cc.RichText),
                this.registerMsg(),
                this.node.active = !1,
                this.type = 1
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerMsg: function() {
                this.registerHandler = [["showGeneralLabel", this.showGeneralLabel.bind(this)], ["closeGeneralLabel", this.closeGeneralLabel.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            showGeneralLabel: function(t) {
                t && !this.node.active && (this.node.active = !0, "" !== t.message ? (this.messageLabel.string = t.message, this.type = 1) : this.type = 2, this.maskSprite.active = t.showMask, this.scheduleOnce(function() {
                    this.node.active = !1
                },
                6))
            },
            closeGeneralLabel: function() {
                2 !== this.type && (this.node.active = !1)
            }
        }),
        cc._RFpop()
    },
    {}],
    goldDown: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "004f3rIPrFDRZVxRWT+Lztv", "goldDown"),
        cc.Class({
            "extends": cc.Component,
            properties: {},
            onLoad: function() {},
            init: function() {
                this.node.getChildByName("goldDown3").getComponent(cc.Animation).play(),
                this.node.getChildByName("glow").getComponent(cc.Animation).play(),
                this.scheduleOnce(function() {
                    kf.require("logic.room").putInPool(this.node.name, this.node)
                },
                1.5)
            }
        }),
        cc._RFpop()
    },
    {}],
    hallLogic: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "bb463jTl+FLGohySy8DazDD", "hallLogic"),
        window.logic.hall = function() {
            var t = {},
            e = kf.require("util.byteProtocol"),
            i = kf.require("util.network"),
            n = kf.require("basic.clientEvent"),
            s = kf.require("util.lang"),
            o = kf.require("util.richlabel"),
            a = kf.require("logic.dict"),
            r = (kf.require("logic.bag"), kf.require("logic.room"));
            return t.GAMESVRSWITCH = {
                ACTIVIRY_BUTTON: 1100,
                ACTIVITY_TICKET_TOGGLE: 1101,
                SHARE_TOGGLE: 1102,
                CDKey_TOGGLE: 1103,
                SHOP_BUTTON: 1200,
                SHOP_GOLD_TOGGLE: 1201,
                SHOP_DIAMOND_TOGGLE: 1202,
                IOS_CHARGE_TYPE: 1203,
                TOPPANEL_TICKET: 1300,
                RANK_BUTTON: 1400,
                RANK_TICKET_TOGGLE: 1401,
                EXCHANGE_BUTTON: 1500,
                FISHING_MAN_BUTTON: 1600,
                ATHLETICS_BUTTON: 1700,
                ATHLETICS_BUTTON_NEW: 17e3,
                ATHLETICS_FISH_MAN: 1701,
                ATHLETICS_GAME: 1702,
                ATHLETICS_FISH_LOW: 1703,
                ATHLETICS_FISH_MIDDLE: 1704,
                ATHLETICS_FISH_HIGH: 1705,
                ATHLETICS_GAME_GOLD: 1706,
                ATHLETICS_GAME_LITTLE_TICKET: 1707,
                ATHLETICS_GAME_LARGE_TICKET: 1708,
                VIP_BUTTON: 1800,
                TOPPANEL_DIAMOND: 1900,
                BAG_BUTTON: 2e3,
                MAIL_BUTTON: 2100,
                SHARE_QQ: 2200,
                SHARE_QQZONE: 2201,
                SHARE_WECHAT: 2202,
                SHARE_FRIEND: 2203,
                SHARE_SINA: 2204,
                SHARE_MOBILE: 2205,
                SPRING_FESTIVAL: 2300,
                CHANGE_ACCOUNT: 2400,
                CHAT_BUTTON: 2500,
                TICKET_FISH: 2600,
                ONLINE_GIFT: 2700,
                HALL_SWITCH: 2800,
                ITEM_SWITCH: 2900,
                BULLET_SWITCH: 3e3,
                CHECK_IN: 3100,
                DAILY_TASK: 3200,
                VIP_PACKAGE: 3300,
                REAL_NAME: 3500,
                LOGO: 3400,
                EXCHANGE_COIN: 3600,
                FREE_COIN: 3700,
                NOVICEPACKS: 3800,
                NEWSHARE: 3900,
                YUN_CENG: 1504e3,
                CORNUCOPIA: 1001106,
                AD_NOTIFY: 1503001,
                WEB_CLIENT: 1503002,
                HTTPS: 1503003,
                NEW_MATCH: 175e3,
                VISION_SWITCH: 1504100,
                EXCHANGE_BROWSER: 1304e3,
                EXCHANGE_SWITCH: 1304100,
                OFFER_ORDER: 1001201,
                SERVICE_OFF_NOTICE: 1504200
            },
            t.REWARD_ID = {
                FISHINGMASTER_ROOM1: 1,
                FISHINGMASTER_ROOM2: 2,
                NEWCHALLENGE: 3,
                ACTIVITY1: 4,
                ACTIVITY2: 5,
                ACTIVITY3: 6,
                SINGLESIGNIN: 7,
                CONTISIGNIN: 8,
                TOTALSIGNIN: 9
            },
            t.init = function() {
                this.registerMsg(),
                this.loginLogic = kf.require("logic.login"),
                this.broadcastArr = [],
                this.broadcastCountArr = [],
                this.broadcastIndex = 0,
                this.broadcastCurrentIndex = 0,
                this.playTimes = 2,
                this.turnOnButtonTime = .5,
                this.canTouchButton = !0
            },
            t.registerMsg = function() {
                i.registerEvent("RoomTableRespone",
                function(t) {
                    this.tableData = e.getFieldValueEx(t, "tableArray"),
                    this.table = [];
                    for (var i = 0; i < this.tableData.length; i++) {
                        var s = e.getFieldValueEx(this.tableData[i], "playerInfo");
                        this.playerData = [];
                        for (var o = 0; o < s.length; o++) {
                            var a = {
                                name: e.getFieldValueEx(s[o], "nick"),
                                coin: e.getFieldValueEx(s[o], "coin"),
                                seatid: e.getFieldValueEx(s[o], "seatId"),
                                tableid: e.getFieldValueEx(this.tableData[i], "tableid")
                            };
                            this.playerData.push(a)
                        }
                        this.table.push(this.playerData)
                    }
                    n.dispatchEvent("getRoomTable", this.table)
                }.bind(this)),
                i.registerEvent("AccountRespone",
                function(t) {
                    var i = e.getFieldValueEx(t, "number");
                    1 === e.getFieldValueEx(t, "type") ? e.setFieldValue("LoginRespone", "coin", i) : e.setFieldValue("LoginRespone", "bank_coin", i),
                    n.dispatchEvent("updateMoney")
                }.bind(this)),
                i.registerEvent("EnterSpecifySeatRespone",
                function(t) {}.bind(this)),
                i.registerEvent("NewMailNotify",
                function(t) {
                    var i = e.getFieldValueEx(t, "mail_list");
                    this.mailList || (this.mailList = []);
                    for (var s = 0; s < i.length; s++) {
                        var a = {
                            mailId: e.getFieldValueEx(i[s], "mail_id"),
                            senderName: e.getFieldValueEx(i[s], "sender_name"),
                            title: e.getFieldValueEx(i[s], "title"),
                            mailType: e.getFieldValueEx(i[s], "mail_type"),
                            sendTime: e.getFieldValueEx(i[s], "send_time"),
                            status: e.getFieldValueEx(i[s], "status"),
                            attach: e.getFieldValueEx(i[s], "attach")
                        };
                        this.mailList.push(a)
                    }
                    this.mailList = o.largeToSmallArr(this.mailList, "sendTime"),
                    n.dispatchEvent("youHaveNewMail", !0),
                    n.dispatchEvent("newMailList")
                }.bind(this)),
                i.registerEvent("ReadNewMailRespone",
                function(t) {
                    n.dispatchEvent("readMail", t);
                    for (var e = 0; e < this.mailList.length; e++) if (this.mailList[e].mailId === t.mail_id && 1 === this.mailList[e].status) {
                        this.mailList[e].status = 2;
                        break
                    }
                }.bind(this)),
                i.registerEvent("ReceiveMailRewardRespone",
                function(t) {
                    n.dispatchEvent("showOkMessage", "getReward", !1);
                    for (var e = 0; e < this.mailList.length; e++) if (this.mailList[e].mailId === t.mail_id) {
                        this.mailList[e].status = 3;
                        break
                    }
                    this.testMailRead(),
                    n.dispatchEvent("closeMail")
                }.bind(this)),
                i.registerEvent("NewMailListRespone",
                function(t) {
                    var i = e.getFieldValueEx(t, "mail_list");
                    this.mailList = [];
                    for (var s = 0; s < i.length; s++) {
                        var a = {
                            mailId: e.getFieldValueEx(i[s], "mail_id"),
                            senderName: e.getFieldValueEx(i[s], "sender_name"),
                            title: e.getFieldValueEx(i[s], "title"),
                            mailType: e.getFieldValueEx(i[s], "mail_type"),
                            sendTime: e.getFieldValueEx(i[s], "send_time"),
                            status: e.getFieldValueEx(i[s], "status"),
                            attach: e.getFieldValueEx(i[s], "attach")
                        };
                        this.mailList.push(a)
                    }
                    this.mailList = o.largeToSmallArr(this.mailList, "sendTime"),
                    this.testMailRead(),
                    n.dispatchEvent("newMailList")
                }.bind(this)),
                i.registerEvent("OneKeyDrawMailResponse",
                function(t) {
                    if (e.getFieldValueEx(t, "result") === !0) {
                        n.dispatchEvent("showOkMessage", "getReward", !1);
                        for (var i = 0; i < this.mailList.length; i++) this.mailList[i].status = 3;
                        n.dispatchEvent("oneKeyDrawMail"),
                        n.dispatchEvent("youHaveNewMail", !1)
                    }
                }.bind(this)),
                i.registerEvent("OneKeyRemoveMailResponse",
                function(t) {
                    e.getFieldValueEx(t, "result") === !0 && (this.mailList = [], n.dispatchEvent("showOkMessage", "removeAllMail", !1), n.dispatchEvent("oneKeyRemoveMail")),
                    this.testMailRead()
                }.bind(this)),
                i.registerEvent("RemoveMailResponse",
                function(t) {
                    if (e.getFieldValueEx(t, "result") === !0) {
                        for (var i = 0; i < this.mailList.length; i++) if (this.mailList[i].mailId === t.mail_id) {
                            this.mailList.splice(i, 1);
                            break
                        }
                        n.dispatchEvent("closeMail")
                    }
                    this.testMailRead()
                }.bind(this)),
                i.registerEvent("protoQueryNewUserGiftResponse",
                function(t) {
                    this.newuser = e.getFieldValueEx(t, "newuser"),
                    this.rest_time = e.getFieldValueEx(t, "rest_time"),
                    n.dispatchEvent("novicePacksSuccess", t)
                }.bind(this)),
                i.registerEvent("QueryDiscountGiftExRespone",
                function(t) {
                    this.giftData = e.getFieldValueEx(t, "gift_list"),
                    this.recharge_idData = [],
                    this.priceData = [],
                    this.buyNumData = [],
                    this.rewardData = [],
                    this.addrewardData = [],
                    this.posData = [];
                    for (var i = 0; i < this.giftData.length; i++) {
                        var s = {
                            recharge_id: e.getFieldValueEx(this.giftData[i], "recharge_id"),
                            price: e.getFieldValueEx(this.giftData[i], "price"),
                            num: e.getFieldValueEx(this.giftData[i], "num"),
                            reward: e.getFieldValueEx(this.giftData[i], "reward"),
                            addreward: e.getFieldValueEx(this.giftData[i], "addreward"),
                            pos: e.getFieldValueEx(this.giftData[i], "pos")
                        };
                        this.recharge_idData.push(s.recharge_id),
                        this.priceData.push(s.price),
                        this.buyNumData.push(s.num),
                        this.rewardData.push(s.reward.substring(2, s.reward.length + 1) - s.addreward),
                        this.addrewardData.push(s.addreward),
                        this.posData.push(s.pos)
                    }
                    this.giftNextData = e.getFieldValueEx(t, "gift_next"),
                    this.rechargeNext_idData = [],
                    this.priceNextData = [],
                    this.buyNumNextData = [],
                    this.rewardDataNext = [],
                    this.addrewardDataNext = [],
                    this.posNextData = [];
                    for (var i = 0; i < this.giftNextData.length; i++) {
                        var o = {
                            recharge_id: e.getFieldValueEx(this.giftNextData[i], "recharge_id"),
                            price: e.getFieldValueEx(this.giftNextData[i], "price"),
                            num: e.getFieldValueEx(this.giftNextData[i], "num"),
                            reward: e.getFieldValueEx(this.giftNextData[i], "reward"),
                            addreward: e.getFieldValueEx(this.giftNextData[i], "addreward"),
                            pos: e.getFieldValueEx(this.giftNextData[i], "pos")
                        };
                        this.rechargeNext_idData.push(o.recharge_id),
                        this.priceNextData.push(o.price),
                        this.buyNumNextData.push(o.num),
                        this.rewardDataNext.push(o.reward.substring(2, o.reward.length + 1) - o.addreward),
                        this.addrewardDataNext.push(o.addreward),
                        this.posNextData.push(o.pos)
                    }
                    n.dispatchEvent("exgratiaPackageNextSuccess", t)
                }.bind(this)),
                i.registerEvent("protoQueryAdResponse",
                function(t) {
                    n.dispatchEvent("popUpSuccess", t)
                }.bind(this)),
                i.registerEvent("QueryOperateActivityRespone",
                function(t) {
                    this.title_list = e.getFieldValueEx(t, "title_list"),
                    this.user_id = [],
                    this.title = [],
                    this.begin_time = [],
                    this.end_time = [];
                    for (var i = 0; i < this.title_list.length; i++) {
                        var s = {
                            acti_id: e.getFieldValueEx(this.title_list[i], "acti_id"),
                            title: e.getFieldValueEx(this.title_list[i], "title"),
                            begin_time: e.getFieldValueEx(this.title_list[i], "begin_time"),
                            end_time: e.getFieldValueEx(this.title_list[i], "end_time")
                        };
                        this.user_id.push(s.acti_id),
                        this.title.push(s.title),
                        this.begin_time.push(s.begin_time),
                        this.end_time.push(s.end_time)
                    }
                    this.data_list = e.getFieldValueEx(t, "data_list"),
                    this.acti_id = [],
                    this.data_id = [],
                    this.note = [],
                    this.type = [],
                    this.status = [],
                    this.complete_value = [],
                    this.target_value = [],
                    this.reward_id = [];
                    for (var o = 0; o < this.data_list.length; o++) {
                        var a = {
                            acti_id: e.getFieldValueEx(this.data_list[o], "acti_id"),
                            data_id: e.getFieldValueEx(this.data_list[o], "data_id"),
                            note: e.getFieldValueEx(this.data_list[o], "note"),
                            type: e.getFieldValueEx(this.data_list[o], "type"),
                            status: e.getFieldValueEx(this.data_list[o], "status"),
                            complete_value: e.getFieldValueEx(this.data_list[o], "complete_value"),
                            target_value: e.getFieldValueEx(this.data_list[o], "target_value"),
                            reward_id: e.getFieldValueEx(this.data_list[o], "reward_id")
                        };
                        this.acti_id.push(a.acti_id),
                        this.data_id.push(a.data_id),
                        this.note.push(a.note),
                        this.type.push(a.type),
                        this.status.push(a.status),
                        this.complete_value.push(a.complete_value),
                        this.target_value.push(a.target_value),
                        this.reward_id.push(a.reward_id)
                    }
                    n.dispatchEvent("inquireActivitySuccess", t)
                }.bind(this)),
                i.registerEvent("GetOperateActivityRespone",
                function(t) {
                    this.getRewardResult = e.getFieldValueEx(t, "result"),
                    this.getRewardActi_id = e.getFieldValueEx(t, "acti_id"),
                    this.getRewardData_id = e.getFieldValueEx(t, "data_id"),
                    n.dispatchEvent("getActivityRewardSuccess", t)
                }.bind(this)),
                i.registerEvent("RuleOperateActivityRespone",
                function(t) {
                    this.getRuleActi_id = e.getFieldValueEx(t, "acti_id"),
                    this.getRuleText = e.getFieldValueEx(t, "text"),
                    n.dispatchEvent("RuleOperateActivitySuccess", t)
                }.bind(this)),
                i.registerEvent("DataOperateActivityRespone",
                function(t) {
                    this.statusNum = e.getFieldValueEx(t, "status"),
                    n.dispatchEvent("getActivityDataSuccess", t)
                }.bind(this)),
                i.registerEvent("ActivityListRespone",
                function(t) {
                    this.acti_list = e.getFieldValueEx(t, "acti_list"),
                    this.typeList = [],
                    this.type_idList = [],
                    this.titleList = [],
                    this.priority = [];
                    for (var i = 0; i < this.acti_list.length; i++) {
                        var s = {
                            type: e.getFieldValueEx(this.acti_list[i], "type"),
                            type_id: e.getFieldValueEx(this.acti_list[i], "type_id"),
                            title: e.getFieldValueEx(this.acti_list[i], "title"),
                            priority: e.getFieldValueEx(this.acti_list[i], "priority")
                        };
                        this.typeList.push(s.type),
                        this.type_idList.push(s.type_id),
                        this.titleList.push(s.title),
                        this.priority.push(s.priority)
                    }
                    n.dispatchEvent("getActivityListSuccess", t)
                }.bind(this)),
                i.registerEvent("CoinRankRespone",
                function(t) {
                    var i = e.getFieldValueEx(t, "rank_list");
                    this.coinTop = [];
                    for (var s = 0; s < i.length; s++) {
                        var o = {
                            uin: e.getFieldValueEx(i[s], "uin"),
                            rank: e.getFieldValueEx(i[s], "rank"),
                            nick: e.getFieldValueEx(i[s], "nick"),
                            score: e.getFieldValueEx(i[s], "score"),
                            draw: e.getFieldValueEx(t, "draw")
                        };
                        this.coinTop.push(o)
                    }
                    n.dispatchEvent("coinTopSuccess")
                }.bind(this)),
                i.registerEvent("protoUseGiftRespone",
                function(t) {
                    this.result = e.getFieldValueEx(t, "result"),
                    this.rewardList = e.getFieldValueEx(t, "rewardList"),
                    this.rewardListData = [];
                    for (var i = 0; i < this.rewardList.length; i++) {
                        var s = {
                            itemType: e.getFieldValueEx(this.rewardList[i], "itemType"),
                            itemId: e.getFieldValueEx(this.rewardList[i], "itemId"),
                            quantity: e.getFieldValueEx(this.rewardList[i], "quantity"),
                            extra: e.getFieldValueEx(this.rewardList[i], "extra")
                        };
                        this.rewardListData.push(s)
                    }
                    n.dispatchEvent("useGiftCodeSuccess", t)
                }.bind(this)),
                i.registerEvent("TicketRankRespone",
                function(t) {
                    var i = e.getFieldValueEx(t, "rank_list");
                    this.ticketTop = [];
                    for (var s = 0; s < i.length; s++) {
                        var o = {
                            uin: e.getFieldValueEx(i[s], "uin"),
                            rank: e.getFieldValueEx(i[s], "rank"),
                            nick: e.getFieldValueEx(i[s], "nick"),
                            score: e.getFieldValueEx(i[s], "score"),
                            draw: e.getFieldValueEx(t, "draw")
                        };
                        this.ticketTop.push(o)
                    }
                    n.dispatchEvent("ticketTopSuccess")
                }.bind(this)),
                i.registerEvent("AccessBankCoinRespone",
                function(t) {
                    e.setFieldValue("LoginRespone", "coin", e.getFieldValueEx(t, "coin")),
                    e.setFieldValue("LoginRespone", "bank_coin", e.getFieldValueEx(t, "bank_coin")),
                    n.dispatchEvent("updateMoney", null)
                }.bind(this)),
                i.registerEvent("ArenaRankResponeNew",
                function(t) {
                    n.dispatchEvent("showArenaRank")
                }.bind(this)),
                i.registerEvent("protoQueryDictRewardResponse",
                function(t) {
                    n.dispatchEvent("setQueryDictReward")
                }.bind(this)),
                i.registerEvent("UserCompetInfoRespone",
                function(t) {
                    n.dispatchEvent("setCompetInfo")
                }.bind(this)),
                i.registerEvent("CompetRankRespone",
                function(t) {
                    n.dispatchEvent("showCompetRank")
                }.bind(this)),
                i.registerEvent("protoChallengeListResponse",
                function(t) {
                    n.dispatchEvent("showChallengeList")
                }.bind(this)),
                i.registerEvent("protoChallengeRankResponse",
                function(t) {
                    n.dispatchEvent("showChallengeRank")
                }.bind(this)),
                i.registerEvent("protoChallengeSignUpResponse",
                function(t) {
                    n.dispatchEvent("challengeSignUp")
                }.bind(this)),
                i.registerEvent("protoChallengeStatusNotify",
                function(t) {
                    var i = e.getFieldValueEx(t, "status");
                    switch (i) {
                    case 4:
                        var s = e.getFieldValueEx(t, "roomId"),
                        o = e.getFieldValueEx(t, "scheduleId"),
                        a = e.getFieldValueEx(t, "duration");
                        r.setScheduleId(s, o, a),
                        n.dispatchEvent("setWeaponPause", !1);
                        break;
                    case 5:
                        var s = e.getFieldValueEx(t, "roomId"),
                        o = e.getFieldValueEx(t, "scheduleId"),
                        a = e.getFieldValueEx(t, "duration");
                        r.setScheduleId(s, o, a),
                        n.dispatchEvent("setWeaponPause", !0);
                        break;
                    case 7:
                        var c = {
                            message: "",
                            showMask: !0
                        };
                        n.dispatchEvent("showGeneralLabel", c)
                    }
                    n.dispatchEvent("challengeStart")
                }.bind(this)),
                i.registerEvent("RechargeResponeEx",
                function(t) {
                    n.dispatchEvent("RechargeResponeEx")
                }.bind(this)),
                i.registerEvent("ClientControlRespone",
                function(t) {}.bind(this)),
                i.registerEvent("resultPush",
                function(t) {
                    var i = parseInt(e.getFieldValue("resultPush", "result"));
                    17 === i && n.dispatchEvent("getUseDialFailCallBack"),
                    n.dispatchEvent("showOkMessage", "errorcode" + i, !1)
                }.bind(this)),
                i.registerEvent("messagePush",
                function(t) {
                    this.broadcastIndex++,
                    this.broadcastArr[this.broadcastIndex] = e.getFieldValue("messagePush", "msg"),
                    this.broadcastCountArr[this.broadcastIndex] = this.playTimes,
                    n.dispatchEvent("showBroadcast")
                }.bind(this)),
                i.registerEvent("DrawDayRankResponse",
                function(t) {
                    var i = e.getFieldValueEx(t, "rewardID"),
                    o = a.getReward(i).COIN_NUM,
                    r = a.getLanguage("130090")[1] + o + a.getLanguage("150220")[1],
                    c = {
                        message: r,
                        button2: {
                            name: s.get("MBOK"),
                            frame: 0,
                            callback: function() {}
                        }
                    };
                    n.dispatchEvent("showMessage", c),
                    n.dispatchEvent("coinTopSuccess")
                }.bind(this)),
                i.registerEvent("DrawWeekRankResponse",
                function(t) {
                    var i = e.getFieldValueEx(t, "rewardID"),
                    o = a.getReward(i).COIN_NUM,
                    r = a.getLanguage("130090")[1] + o + a.getLanguage("150220")[1],
                    c = {
                        message: r,
                        button2: {
                            name: s.get("MBOK"),
                            frame: 0,
                            callback: function() {}
                        }
                    };
                    n.dispatchEvent("showMessage", c),
                    n.dispatchEvent("ticketTopSuccess")
                }.bind(this)),
                i.registerEvent("protoGetMainBtnResponse",
                function(t) {
                    var i = e.getFieldValue("protoGetMainBtnResponse", "mainBtnInfo");
                    n.dispatchEvent("updateMainBtnState", i)
                }.bind(this)),
                i.registerEvent("protoGetShopResponse",
                function(t) {
                    var i = e.getFieldValue("protoGetShopResponse", "shops");
                    n.dispatchEvent("updateShopItems", i)
                }.bind(this))
            },
            t.setRichTextColor = function(t) {
                var e = o.createRichLabelColor(t);
                return e
            },
            t.setFishingMasterVipLabel = function(t, e) {
                var i = [];
                i.push(e);
                var n = a.getVip(e).VIP_Fish_conversion / 1e4;
                i.push(n);
                var s = a.getVip(e).VIP_Conversion_lottery / 1e3;
                i.push(s);
                var r = o.replaceString(t, i);
                return r
            },
            t.setHeadVipLabel = function(t, e) {
                var i = [];
                i.push(e);
                var n = a.getVip(e).Signin;
                i.push(n);
                var s = a.getVip(e).BaseScore;
                i.push(e),
                i.push(s);
                var r = a.getVip(e).DailyTask;
                i.push(e),
                i.push(r);
                var c = o.replaceString(t, i);
                return c
            },
            t.getVipNextLevelExpString = function(t, e, i) {
                var n = [];
                e > a.getVipLength() && (e = a.getVipLength());
                var s = a.getVip(e).Money - i;
                n.push(s),
                n.push(e);
                var r = o.replaceString(t, n);
                return r = o.createRichLabelColor(r)
            },
            t.getVipCurrentLevelExpProgress = function(t, e) {
                if (0 === t);
                else {
                    a.getVip(t).Money
                }
                var i = a.getVip(t + 1).Money,
                n = e / i;
                return n
            },
            t.initBroadcast = function() {
                var t = a.getLanguage("130469")[1];
                this.broadcastArr.push(t),
                this.broadcastCountArr[this.broadcastIndex] = 1
            },
            t.getBroadcastString = function() {
                this.broadcastCountArr[this.broadcastCurrentIndex] <= 0 && (this.broadcastCurrentIndex++, this.getBroadcastCurrentIdx(this.broadcastCurrentIndex));
                var t = this.broadcastArr[this.broadcastCurrentIndex];
                return this.broadcastCountArr[this.broadcastCurrentIndex]--,
                this.broadcastCountArr[this.broadcastCurrentIndex] <= 0 && (this.broadcastArr[this.broadcastCurrentIndex] = void 0),
                t
            },
            t.getBroadcastCurrentPlayCount = function() {
                return this.broadcastCountArr[this.broadcastCurrentIndex]
            },
            t.getBroadcastCurrentIdx = function(t) {
                return this.broadcastArr[t] ? void(this.broadcastCurrentIndex = t) : t >= this.broadcastIndex ? void(this.broadcastCurrentIndex = 0) : void this.getBroadcastCurrentIdx(t + 1)
            },
            t.setButtonTouch = function(t) {
                this.canTouchButton = t
            },
            t.testMailRead = function() {
                for (var t = 0; t < this.mailList.length; t++) if (this.mailList[t].status < 3) return void n.dispatchEvent("youHaveNewMail", !0);
                n.dispatchEvent("youHaveNewMail", !1)
            },
            t.setIsLoginPopUp = function(t) {
                this.isLoginPopUp = t
            },
            t.getIsLoginPopUp = function() {
                return void 0 === this.isLoginPopUp || this.isLoginPopUp
            },
            t.setFirstIntoHall = function(t) {
                this.isFirstIntoHall = t
            },
            t.getFirstIntoHall = function() {
                return this.isFirstIntoHall ? this.isFirstIntoHall: null
            },
            t.roomTableRequest = function(t) {
                var e = [this.loginLogic.getUin(), t];
                i.send("RoomTableRequest", e)
            },
            t.enterSpecifySeatRequest = function(t, e, n) {
                var s = [this.loginLogic.getUin(), t, e, parseInt(n)];
                i.send("EnterSpecifySeatRequest", s)
            },
            t.readNewMailRequest = function(t) {
                var e = [t, this.loginLogic.getUin()];
                i.send("ReadNewMailRequest", e)
            },
            t.receiveMailRewardRequest = function(t) {
                var e = [this.loginLogic.getUin(), t];
                i.send("ReceiveMailRewardRequest", e)
            },
            t.newMailListRequest = function() {
                var t = [this.loginLogic.getUin()];
                i.send("NewMailListRequest", t)
            },
            t.oneKeyDrawMailRequest = function() {
                i.send("OneKeyDrawMailRequest")
            },
            t.oneKeyRemoveMailRequest = function() {
                i.send("OneKeyRemoveMailRequest")
            },
            t.removeMailRequest = function(t) {
                var e = [t];
                i.send("RemoveMailRequest", e)
            },
            t.getPrefab = function(t) {
                var e = void 0;
                if (this[t + "Pool"] && this[t + "Prefab"]) {
                    var i = this[t + "Pool"];
                    if (!i) return;
                    e = i.size() > 0 ? i.get() : cc.instantiate(this[t + "Prefab"])
                }
                return e
            },
            t.novicePacks = function() {
                var t = [this.loginLogic.getUin()];
                i.send("protoQueryNewUserGiftRequest", t)
            },
            t.queryRechargeItem = function(t) {
                var e = [this.loginLogic.getUin(), t];
                i.send("protoQueryRechargeItemRequest", e)
            },
            t.exgratiaPackageNext = function() {
                var t = [this.loginLogic.getUin()];
                i.send("QueryDiscountGiftExRequest", t)
            },
            t.popUpRequest = function() {
                var t = [this.loginLogic.getUin()];
                i.send("protoQueryAdRequest", t)
            },
            t.inquireActivity = function() {
                var t = [this.loginLogic.getUin()];
                i.send("QueryOperateActivityRequest", t)
            },
            t.getActivityReward = function(t, e) {
                var n = [this.loginLogic.getUin(), t, e];
                i.send("GetOperateActivityRequest", n)
            },
            t.getActivityRule = function(t) {
                var e = [this.loginLogic.getUin(), t];
                i.send("RuleOperateActivityRequest", e)
            },
            t.getActivityList = function() {
                var t = [this.loginLogic.getUin()];
                i.send("ActivityListRequest", t)
            },
            t.useGiftCode = function(t) {
                var e = [this.loginLogic.getUin(), t];
                i.send("protoUseGiftRequest", e)
            },
            t.topCoin = function() {
                var t = [this.loginLogic.getUin()];
                i.send("CoinRankRequest", t)
            },
            t.topTicket = function() {
                var t = [this.loginLogic.getUin()];
                i.send("TicketRankRequest", t)
            },
            t.accessCoin = function(t, e) {
                var n = [this.loginLogic.getUin(), t, e, ""];
                i.send("AccessBankCoinRequest", n)
            },
            t.arenaRankRequest = function(t, e) {
                var n = [this.loginLogic.getUin(), t, e];
                i.send("ArenaRankRequestNew", n)
            },
            t.queryDictRewardRequest = function(t, e) {
                var n = [this.loginLogic.getUin(), 1, t, e];
                i.send("protoQueryDictRewardRequest", n)
            },
            t.arenaRewardRequest = function(t) {
                var e = [this.loginLogic.getUin(), t];
                i.send("ArenaRewardRequest", e)
            },
            t.userCompetInfoRequest = function(t) {
                var e = [this.loginLogic.getUin(), t];
                i.send("UserCompetInfoRequest", e)
            },
            t.competRankRequest = function(t) {
                var e = [this.loginLogic.getUin(), t];
                i.send("CompetRankRequest", e)
            },
            t.challengeListRequest = function(t) {
                var e = [this.loginLogic.getUin(), t];
                i.send("protoChallengeListRequest", e)
            },
            t.challengeRankRequest = function(t, e) {
                var n = [this.loginLogic.getUin(), t, e];
                i.send("protoChallengeRankRequest", n)
            },
            t.challengeSignUpRequest = function(t, e) {
                var n = [this.loginLogic.getUin(), t, e];
                i.send("protoChallengeSignUpRequest", n)
            },
            t.drawDayRankRequest = function() {
                var t = [this.loginLogic.getUin()];
                i.send("DrawDayRankRequest", t)
            },
            t.drawWeekRankRequest = function() {
                var t = [this.loginLogic.getUin()];
                i.send("DrawWeekRankRequest", t)
            },
            t.getMainBtnRequest = function() {
                i.send("protoGetMainBtnRequest")
            },
            t.getShopRequest = function() {
                i.send("protoGetShopRequest")
            },
            t
        },
        cc._RFpop()
    },
    {}],
    hallScene: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "0cfd1GMlOJJi52bw72DiDXb", "hallScene"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                popUp: cc.Node,
                shop: cc.Prefab,
                warehours: cc.Prefab,
                setting: cc.Prefab,
                top: cc.Prefab,
                bag: cc.Prefab,
                mail: cc.Prefab,
                dailySign: cc.Prefab,
                notice: cc.Prefab,
                fishingMaster: cc.Prefab,
                prize: cc.Prefab,
                competitiveChallenge: cc.Prefab,
                service: cc.Prefab,
                head: cc.Prefab,
                activity: cc.Prefab,
                vip: cc.Prefab,
                masterDesk: cc.Prefab,
                redPacket: cc.Prefab,
                dial: cc.Prefab,
                dailyTask: cc.Prefab,
                arrHead: [cc.SpriteFrame],
                hallHead: cc.Sprite,
                nameLable: cc.Label,
                coinLable: cc.Label,
                lotteryLable: cc.Label,
                vipLable: cc.Label,
                vipShowNode: cc.Node,
                loginScene: cc.Node,
                prompt_frame: cc.Node,
                newMail: cc.Node,
                broadcast: cc.Node,
                broadcastNode: cc.Node,
                room: cc.Node,
                btnArry: [cc.Node],
                downloadEffectNode: cc.Node,
                downloadTip: cc.Label
            },
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent"),
                this.protocol = kf.require("util.byteProtocol"),
                this.lang = kf.require("util.lang"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.roomLogic = kf.require("logic.room"),
                this.loginLogic = kf.require("logic.login"),
                this.hallLogic = kf.require("logic.hall"),
                this.dictLogic = kf.require("logic.dict"),
                this.lang = kf.require("util.lang"),
                this.yesOrNo = !1,
                this.registerMsg(),
                this.showInfo(),
                this.isTime = !1,
                this.canReadDict = kf.require("logic.dict").finishPreLoad;
                var t = kf.require("util.configuration");
                t.getConfigData(),
                t.setConfigData(),
                this.showHead(),
                this.hallLogic.getMainBtnRequest()
            },
            start: function() {
                this.hallLogic.setButtonTouch(!0),
                this.clientEvent.dispatchEvent("showWaiting", !1),
                this.checkBtnState(),
                this.hallLogic.mailList && this.hallLogic.testMailRead(),
                this.hallLogic.getFirstIntoHall() && (this.loginLogic.queryFlagInfoRequest(), 1 !== this.protocol.getFieldValue("LoginRespone", "signin") && this.hallLogic.setIsLoginPopUp(!0))
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerMsg: function() {
                this.registerHandler = [["loginSuccess", this.showInfo.bind(this)], ["updateMoney", this.updateMoney.bind(this)], ["getHeadSuccess", this.showHead.bind(this)], ["intoGame", this.intoGame.bind(this)], ["dialPop", this.dialPop.bind(this)], ["youHaveNewMail", this.youHaveNewMail.bind(this)], ["challengeStart", this.challengeStart.bind(this)], ["hallPopUp", this.hallPopUp.bind(this)], ["shopPopUp", this.shopPopUp.bind(this)], ["updateButton", this.updateButton.bind(this)], ["showBroadcast", this.showBroadcast.bind(this)], ["dictPreloadFinish", this.dictPreloadFinish.bind(this)], ["updateMainBtnState", this.updateMainBtnState.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            checkDownLoadEffect: function(t) {
                t > 1e4 && (this.downloadEffectNode.active = !0, this.downloadTip.string = this.dictLogic.getNotice().DownLoadTip, this.downloadTip.node.parent.width = this.downloadTip.node.width + 15)
            },
            showInfo: function() {
                if (this.protocol.getFieldValue("LoginRespone", "uin")) {
                    var t = (this.protocol.getFieldValue("LoginRespone", "mobile"), this.protocol.getFieldValue("LoginRespone", "vip"));
                    if (this.vipShowNode) {
                        var e = "Image_VIPstar1";
                        t >= 4 && t <= 6 ? e = "Image_VIPstar2": t > 6 && (e = "Image_VIPstar"),
                        cc.loader.loadRes("vipIcon/" + e,
                        function(t, e) {
                            var i = new cc.SpriteFrame;
                            i.initWithTexture(e),
                            this.vipShowNode.getComponent(cc.Sprite).spriteFrame = i
                        }.bind(this))
                    }
                    this.vipLable && (this.vipLable.string = t);
                    var i = this.protocol.getFieldValue("LoginRespone", "coin");
                    i >= 1e6 ? this.coinLable.string = parseInt(i / 1e4) + "万": this.coinLable.string = i,
                    this.checkDownLoadEffect(i);
                    var n = this.protocol.getFieldValue("LoginRespone", "ticket");
                    n >= 1e4 ? this.lotteryLable.string = parseInt(n / 1e4) + "万": this.lotteryLable.string = n;
                    var s = this.loginLogic.loginInfo.nick;
                    this.nameLable.string = s
                }
            },
            updateMoney: function() {
                var t = this.protocol.getFieldValue("LoginRespone", "coin");
                t >= 1e6 ? this.coinLable.string = parseInt(t / 1e4) + "万": this.coinLable.string = t;
                var e = this.protocol.getFieldValue("LoginRespone", "ticket");
                e >= 1e4 ? this.lotteryLable.string = parseInt(e / 1e4) + "万": this.lotteryLable.string = e
            },
            showHead: function(t) {
                var e = this.loginLogic.loginInfo.icon;
                e && (e = Number(e), this.hallHead.spriteFrame = this.arrHead[e - 1])
            },
            getBroadcast: function() {
                0 === this.hallLogic.broadcastArr.length && (this.broadcastNode.active = !1, this.hallLogic.initBroadcast(), this.showBroadcast())
            },
            showBroadcast: function() {
                this.broadcastNode.active = !0
            },
            checkBtnState: function() {
                for (var t = 0; t < this.btnArry.length; t++) {
                    var e = this.dictLogic.getButtonState(t + 1);
                    this.btnArry[t].active = e
                }
            },
            dictPreloadFinish: function(t) {
                this.canReadDict = t
            },
            intoGame: function(t) {
                var e;
                switch (t) {
                case 1:
                    return void cc.director.loadScene("fishScene");
                case - 1 : e = this.dictLogic.getLanguage("130318")[1];
                    break;
                case - 2 : e = this.dictLogic.getLanguage("150007")[1];
                    break;
                case - 3 : e = this.dictLogic.getLanguage("150008")[1];
                    break;
                case - 4 : e = this.dictLogic.getLanguage("150009")[1];
                    break;
                case - 5 : e = this.dictLogic.getLanguage("150010")[1];
                    break;
                case - 6 : e = this.dictLogic.getLanguage("150011")[1]
                }
                var i = {
                    message: e,
                    button2: {
                        name: this.lang.get("MBOK"),
                        frame: 1,
                        callback: function() {}
                    }
                };
                this.clientEvent.dispatchEvent("showMessage", i)
            },
            dialPop: function() {
                this.dialPopUp()
            },
            shopPopUp: function() {
                this.buttonManager.open(this.popUp, "shop", this.shop)
            },
            warehoursPopUp: function() {
                this.buttonManager.open(this.popUp, "warehours", this.warehours)
            },
            settingPopUp: function() {
                this.buttonManager.open(this.popUp, "setting", this.setting)
            },
            topPopUp: function() {
                this.buttonManager.open(this.popUp, "top", this.top)
            },
            bagPopUp: function() {
                this.buttonManager.open(this.popUp, "bag", this.bag)
            },
            mailPopUp: function() {
                this.buttonManager.open(this.popUp, "mailBag", this.mail)
            },
            signInPopUp: function() {
                this.buttonManager.open(this.popUp, "dailySign", this.dailySign)
            },
            arenaPopUp: function() {
                this.buttonManager.open(this.popUp, "competitiveChallenge", this.competitiveChallenge)
            },
            prizePopUp: function() {
                this.buttonManager.open(this.popUp, "prize", this.prize)
            },
            headPopUp: function() {
                this.buttonManager.open(this.popUp, "head", this.head)
            },
            vipPopUp: function() {
                this.buttonManager.open(this.popUp, "vip", this.vip)
            },
            dialPopUp: function() {
                var t = this.loginLogic.flagData,
                e = this.loginLogic.valueData;
                return this.loginLogic.checkValue(4, t, e) ? void this.buttonManager.open(this.popUp, "dial", this.dial) : void this.clientEvent.dispatchEvent("showOkMessage", "errorcode17", !1)
            },
            redPacketPopUp: function() {
                this.buttonManager.open(this.popUp, "redpacket", this.redPacket)
            },
            dailyTaskPopUp: function() {
                this.buttonManager.open(this.popUp, "dailyTask", this.dailyTask)
            },
            downloadEvent: function() {
                var t = this.dictLogic.getNotice();
                t && t.DownLoad && (cc.sys.openURL(t.DownLoad), this.downloadEffectNode.active = !1)
            },
            intoRoom1Request: function() {
                if (this.hallLogic.canTouchButton) {
                    this.hallLogic.setButtonTouch(!1),
                    this.clientEvent.dispatchEvent("showWaiting", !0);
                    var t = this.protocol.getFieldValue("RoomListRespone", "room_data"),
                    e = this.protocol.getFieldValueEx(t[0], "room_id");
                    this.roomLogic.intoGameRequest(e)
                }
            },
            intoRoom2Request: function() {
                if (this.hallLogic.canTouchButton) {
                    this.hallLogic.setButtonTouch(!1),
                    this.clientEvent.dispatchEvent("showWaiting", !0);
                    var t = this.protocol.getFieldValue("RoomListRespone", "room_data"),
                    e = this.protocol.getFieldValueEx(t[1], "room_id");
                    this.roomLogic.intoGameRequest(e)
                }
            },
            intoRoom3Request: function() {
                this.buttonManager.open(this.popUp, "masterDesk", this.masterDesk)
            },
            fastIntoRoomRequest: function() {
                this.hallLogic.canTouchButton && (this.hallLogic.setButtonTouch(!1), this.clientEvent.dispatchEvent("showWaiting", !0), this.roomLogic.fastIntoRoomRequest())
            },
            youHaveNewMail: function(t) {
                this.newMail.active = t
            },
            challengeStart: function() {
                var t = this.protocol.getFieldValue("protoChallengeStatusNotify", "status");
                if (4 === t) {
                    var e = (this.protocol.getFieldValue("protoChallengeStatusNotify", "roomId"), this),
                    i = {
                        message: this.dictLogic.getLanguage("124096")[1],
                        button2: {
                            name: this.lang.get("MBINTO"),
                            frame: 0,
                            callback: function() {
                                e.clientEvent.dispatchEvent("recordTime")
                            }
                        },
                        button4: {
                            name: "",
                            frame: 2,
                            callback: function() {}
                        }
                    };
                    this.clientEvent.dispatchEvent("showMessage", i)
                }
            },
            updateButton: function(t) {
                for (var e = this.protocol.getFieldValueEx(t, "data"), i = 0; i < e.length; i++) {
                    var n = this.protocol.getFieldValueEx(e[i], "id"),
                    s = this.protocol.getFieldValueEx(e[i], "flag");
                    switch (n) {
                    case this.hallLogic.GAMESVRSWITCH.ACTIVIRY_BUTTON:
                        if (1 === s) break;
                        this.btnActivity.active = !1;
                        break;
                    case this.hallLogic.GAMESVRSWITCH.SHOP_BUTTON:
                        if (1 === s) break;
                        this.btnShop.active = !1;
                        break;
                    case this.hallLogic.GAMESVRSWITCH.RANK_BUTTON:
                        if (1 === s) break;
                        this.btnRank.active = !1;
                        break;
                    case this.hallLogic.GAMESVRSWITCH.EXCHANGE_BUTTON:
                        if (1 === s) break;
                        this.btnPrize.active = !1;
                        break;
                    case this.hallLogic.GAMESVRSWITCH.FISHING_MAN_BUTTON:
                        if (1 === s) break;
                        this.btnFishingMaster.active = !1;
                        break;
                    case this.hallLogic.GAMESVRSWITCH.ATHLETICS_BUTTON_NEW:
                        if (1 === s) break;
                        this.btnArena.active = !1,
                        this.arenaAnim.active = !1;
                        break;
                    case this.hallLogic.GAMESVRSWITCH.VIP_BUTTON:
                        if (1 === s) break;
                        this.btnVip.active = !1;
                        break;
                    case this.hallLogic.GAMESVRSWITCH.BAG_BUTTON:
                        if (1 === s) break;
                        this.btnBag.active = !1;
                        break;
                    case this.hallLogic.GAMESVRSWITCH.MAIL_BUTTON:
                        if (1 === s) break;
                        this.btnMail.active = !1;
                        break;
                    case this.hallLogic.GAMESVRSWITCH.CHAT_BUTTON:
                        if (1 === s) break;
                        this.btnService.active = !1;
                        break;
                    case this.hallLogic.GAMESVRSWITCH.FREE_COIN:
                        if (1 === s) break;
                        this.btnFreeGold.active = !1
                    }
                }
            },
            hallPopUp: function() {
                this.room.getComponent(cc.Animation).play("room")
            },
            update: function() {
                if (this.canReadDict) if (this.getBroadcast(), 1 === this.protocol.getFieldValue("LoginRespone", "signin")) {
                    if (this.loginLogic.flagData && this.loginLogic.checkValue(4, this.loginLogic.flagData, this.loginLogic.valueData)) {
                        this.canReadDict = !1;
                        this.dictLogic.getButtonState(4)
                    }
                } else {
                    if (this.canReadDict = !1, !this.hallLogic.getIsLoginPopUp()) return;
                    this.dictLogic.getButtonState(9)
                }
            },
            updateMainBtnState: function(t) {
                cc.log("hall scene updateMainBtnState");
                for (var e = 0; e < t.length; e++) {
                    var i = this.protocol.getFieldValueEx(t[e], "id"),
                    n = this.protocol.getFieldValueEx(t[e], "state");
                    this.btnArry[i - 1].active = 1 == n
                }
                cc.sys.isBrowser || (this.btnArry[12].active = !1)
            }
        }),
        cc._RFpop()
    },
    {}],
    head: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "c948fPL38NEIo4udQCYgROe", "head"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                buttonBindingOn: cc.Node,
                buttonAccountOn: cc.Node,
                buttonCertificationOn: cc.Node,
                bindingNode: cc.Node,
                accountNode: cc.Node,
                idCardNode: cc.Node,
                nicknameNode: cc.Node,
                freeCoin: cc.Node,
                fiveCoin: cc.Node,
                headNode: cc.Node,
                bindPhoneNode: cc.Node,
                ChangePasswd: cc.Node,
                phoneEditBox: cc.EditBox,
                smsCodeEditBox: cc.EditBox,
                password1EditBox: cc.EditBox,
                password2EditBox: cc.EditBox,
                nameEditBox: cc.EditBox,
                IDNumberEdiBox: cc.EditBox,
                IDNameEdiBox: cc.EditBox,
                buttonOk: cc.Node,
                IDBox: cc.Node,
                nameBox: cc.Node,
                IDYes: cc.Node,
                nameYes: cc.Node,
                IDStatus: cc.Label,
                cagPhoneEditBox: cc.EditBox,
                cagPasswordEditBox: cc.EditBox,
                oldPsWdEditBox: cc.EditBox,
                smsEditoBox: cc.EditBox,
                newPsWdEditBox: cc.EditBox,
                psWdOkEditBox: cc.EditBox,
                headArr: [cc.Node],
                spfHeadArr: [cc.SpriteFrame],
                nameStr: cc.Label,
                informaHead: cc.Sprite,
                inputBox: cc.Node,
                prompt_frame: cc.Node,
                IdLabel: cc.Label
            },
            onLoad: function() {
                this.canvas = cc.find("Canvas"),
                this.loginLogic = kf.require("logic.login"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.protocol = kf.require("util.byteProtocol"),
                this.lang = kf.require("util.lang"),
                this.configuration = kf.require("util.configuration"),
                this.dictLogic = kf.require("logic.dict"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.informationHead = this.bindingNode.getChildByName("head").getComponent(cc.Sprite),
                this.registerMsg(),
                this.changeHead(),
                this.head(),
                this.initialHead(),
                this.showFinger(),
                this.showNick(),
                this.count = 180,
                this.isCount = !1,
                (window.chanelSdk && window.chanelSdk >= 3 || isWeixinBrowser()) && (this.buttonAccountOn.parent.active = !1, this.buttonBindingOn.parent.x = this.buttonBindingOn.parent.x + 77, this.buttonCertificationOn.parent.x = this.buttonCertificationOn.parent.x - 78, this.bindingNode.getChildByName("buttonPhone").active = !1, this.bindingNode.getChildByName("buttonPassword").active = !1, this.bindingNode.getChildByName("Prompt_frame").active = !1)
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerMsg: function() {
                this.registerHandler = [["userInformationSuccess", this.userInformationSuccess.bind(this)], ["realNameSuccess", this.realNameSuccess.bind(this)], ["loginResponeSuccess", this.loginResponeSuccess.bind(this)], ["getRealNameSuccess", this.getRealNameSuccess.bind(this)], ["getNickNumberSuccess", this.getNickNumberSuccess.bind(this)], ["getHeadSuccess", this.getHeadSuccess.bind(this)], ["resetPasswdSuccess", this.resetPasswdSuccess.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            init: function() {
                this.initialHead(),
                this.nameStr.string = this.canvas.getChildByName("hallScene").getComponent("hallScene").nameLable.string;
                var t = this.protocol.getFieldValue("LoginRespone", "uin");
                this.IdLabel.string = 142e6 + Number(t),
                this.showFinger()
            },
            userInformationSuccess: function(t) {
                if (this.loginLogic.flagData) {
                    var e = this.loginLogic.flagData,
                    i = this.loginLogic.typeData;
                    switch (t && (e = this.protocol.getFieldValueEx(t, "flag"), i = this.protocol.getFieldValueEx(t, "type")), i) {
                    case 2:
                        4 === e ? this.clientEvent.dispatchEvent("showOkMessage", "130238", !0) : 1 === e && this.clientEvent.dispatchEvent("showOkMessage", "130254", !0);
                        break;
                    case 3:
                        5 === e ? this.clientEvent.dispatchEvent("showOkMessage", "130239", !0) : 1 === e && this.clientEvent.dispatchEvent("showOkMessage", "130234", !0);
                        break;
                    case 5:
                        8 === e && this.clientEvent.dispatchEvent("showOkMessage", "130242", !0);
                        break;
                    case 6:
                        6 === e ? this.clientEvent.dispatchEvent("showOkMessage", "130240", !0) : 1 === e && this.clientEvent.dispatchEvent("showOkMessage", "130235", !0);
                        break;
                    case 8:
                        2 === e ? this.clientEvent.dispatchEvent("showOkMessage", "130236", !0) : 10 === e ? this.clientEvent.dispatchEvent("showOkMessage", "130244", !0) : 12 === e ? this.clientEvent.dispatchEvent("showOkMessage", "130318", !0) : 1 === e && (this.clientEvent.dispatchEvent("showOkMessage", "130232", !0), this.loginLogic.loginInfo.nick = this.nameString, this.nameStr.string = this.nameString, this.nameEditBox.string = this.nameString, this.node.parent.parent.getComponent("hallScene").nameLable.string = this.nameString, this.freeCoin.active = !1, this.fiveCoin.active = !0, this.loginLogic.changeNickFree = !1, this.nicknameBack())
                    }
                }
            },
            realNameSuccess: function() {
                if (this.protocol.getFieldValue("protoSubmitIdInfoRespone", "result")) {
                    var t = this.protocol.getFieldValue("protoSubmitIdInfoRespone", "result"),
                    e = this.protocol.getFieldValue("protoSubmitIdInfoRespone", "status");
                    switch (this.IDStatus.string = e, t) {
                    case 0:
                        this.clientEvent.dispatchEvent("showOkMessage", "150027", !0);
                        break;
                    case 1:
                        this.clientEvent.dispatchEvent("showOkMessage", "150028", !0);
                        break;
                    case 2:
                        this.clientEvent.dispatchEvent("showOkMessage", "150029", !0);
                        break;
                    case 3:
                        this.clientEvent.dispatchEvent("showOkMessage", "150031", !0)
                    }
                    switch (e) {
                    case 0:
                        this.IDStatus.string = this.dictLogic.getLanguage("150032")[1];
                        break;
                    case 1:
                        this.IDStatus.string = this.dictLogic.getLanguage("150033")[1];
                        break;
                    case 2:
                        this.IDStatus.string = this.dictLogic.getLanguage("150034")[1];
                        break;
                    case 3:
                        this.IDStatus.string = this.dictLogic.getLanguage("150035")[1]
                    }
                }
            },
            loginResponeSuccess: function() {
                var t = cc.callFunc(function() {
                    this.canvas.getChildByName("hallScene").active = !1,
                    this.canvas.getChildByName("loginScene").active = !0
                }.bind(this)),
                e = this.protocol.getFieldValue("protoAuthorizeResp", "errcode");
                if (0 === e) this.closePopUp();
                else if (7 === e) {
                    var i = {
                        message: this.dictLogic.getLanguage("130279")[1],
                        button1: {
                            name: this.lang.get("MBCANCEL"),
                            frame: 1,
                            callback: function() {}
                        },
                        button3: {
                            name: this.lang.get("MBOK"),
                            frame: 0,
                            callback: function() {
                                this.clientEvent.dispatchEvent("closeMessage"),
                                this.scheduleOnce(this.changeScene)
                            }.bind(this)
                        }
                    };
                    this.clientEvent.dispatchEvent("showMessage", i)
                } else {
                    var i = {
                        message: this.dictLogic.getLanguage("130281")[1],
                        button1: {
                            name: this.lang.get("MBCANCEL"),
                            frame: 1,
                            callback: function() {}
                        },
                        button3: {
                            name: this.lang.get("MBOK"),
                            frame: 0,
                            callback: function() {
                                this.clientEvent.dispatchEvent("closeMessage"),
                                this.node.runAction(cc.sequence(t))
                            }.bind(this)
                        }
                    };
                    this.clientEvent.dispatchEvent("showMessage", i)
                }
            },
            getRealNameSuccess: function() {
                if (this.protocol.getFieldValue("protoQueryIdInfoRespone", "idNo")) {
                    var t = this.protocol.getFieldValue("protoQueryIdInfoRespone", "status");
                    switch (t) {
                    case 0:
                        return;
                    case 1:
                        this.IDStatus.string = this.dictLogic.getLanguage("150033")[1];
                        break;
                    case 2:
                        this.IDStatus.string = this.dictLogic.getLanguage("150034")[1];
                        break;
                    case 3:
                        this.IDStatus.string = this.dictLogic.getLanguage("150035")[1]
                    }
                    this.buttonOk.active = !1,
                    this.IDBox.active = !1,
                    this.nameBox.active = !1,
                    this.IDYes.active = !0,
                    this.nameYes.active = !0;
                    var e = this.protocol.getFieldValue("protoQueryIdInfoRespone", "idNo"),
                    i = this.protocol.getFieldValue("protoQueryIdInfoRespone", "name");
                    this.IDYes.getChildByName("label").getComponent(cc.Label).string = e,
                    this.nameYes.getChildByName("label").getComponent(cc.Label).string = "*" + i[i.length - 1]
                }
            },
            getNickNumberSuccess: function(t) {
                this.protocol.getFieldValue("GetNickIfUpdateRespone", "number") && (this.loginLogic.changeNickFree && this.loginLogic.changeNickFree === !1 || (this.freeCoin.active = !1, this.fiveCoin.active = !0))
            },
            getHeadSuccess: function() {
                this.loginLogic.icon && (this.informationHead.spriteFrame = this.spfHeadArr[Number(this.loginLogic.icon) - 1])
            },
            closePopUp: function() {
                this.binding(),
                this.buttonManager.close(this.node.parent, this.node.name, !0)
            },
            btnGetSmsCode: function() {
                var t = this.phoneEditBox.string;
                11 !== t.length ? this.clientEvent.dispatchEvent("showOkMessage", "130011", !0) : (this.loginLogic.UserInformation(6, t, ""), this.btnGetSmsCode = this.bindPhoneNode.getChildByName("buttonOK"), this.btnGetSmsCode.opacity = 180, this.btnGetSmsCode.getComponent(cc.Button).interactable = !1, this.isCount = !0, this.LabelGetSmsCode = this.btnGetSmsCode.getChildByName("label").getComponent(cc.Label), this.isCount === !1 && (this.btnGetSmsCode.opacity = 255, this.btnGetSmsCode.getComponent(cc.Button).interactable = !0, this.LabelGetSmsCode.string = this.dictLogic.getLanguage("122068")[1]))
            },
            submit: function() {
                var t = this.phoneEditBox.string,
                e = this.smsCodeEditBox.string,
                i = this.password1EditBox.string,
                n = this.password2EditBox.string;
                if (11 !== t.length) var s = "130011";
                else if (0 === i.length) var s = "130016";
                else if (0 === n.length) var s = "130017";
                else if (i !== n) var s = "130018";
                else if (i.length < 8 && n.length < 8) var s = "130020";
                else {
                    if (0 !== e.length) {
                        var s = {
                            message: this.lang.get("change"),
                            button1: {
                                name: this.lang.get("MBCANCEL"),
                                frame: 1,
                                callback: function() {}
                            },
                            button3: {
                                name: this.lang.get("MBOK"),
                                frame: 0,
                                callback: function() {
                                    this.loginLogic.UserInformation(3, t, e + "|" + n)
                                }.bind(this)
                            }
                        };
                        return void this.clientEvent.dispatchEvent("showMessage", s)
                    }
                    var s = "130243"
                }
                this.clientEvent.dispatchEvent("showOkMessage", s, !0)
            },
            changeName: function() {
                if (this.nameString = this.nameEditBox.string, 0 === this.nameString.length) this.clientEvent.dispatchEvent("showOkMessage", "130073", !0);
                else if (this.nameString.length < 2) this.clientEvent.dispatchEvent("showOkMessage", "130400", !0);
                else {
                    var t = {
                        message: this.lang.get("change"),
                        button1: {
                            name: this.lang.get("MBCANCEL"),
                            frame: 1,
                            callback: function() {}
                        },
                        button3: {
                            name: this.lang.get("MBOK"),
                            frame: 0,
                            callback: function() {
                                this.loginLogic.UserInformation(8, this.nameString, "")
                            }.bind(this)
                        }
                    };
                    this.clientEvent.dispatchEvent("showMessage", t)
                }
            },
            textChange: function() {
                this.nameEditBox.string.length > 0 || (this.nameEditBox.placeholder = "捕鱼达人")
            },
            resetLogin: function() {
                var t = this.oldPsWdEditBox.string,
                e = this.newPsWdEditBox.string,
                i = this.psWdOkEditBox.string;
                0 === e.length ? this.clientEvent.dispatchEvent("showOkMessage", "130016", !0) : 0 === i.length ? this.clientEvent.dispatchEvent("showOkMessage", "130017", !0) : e !== i ? this.clientEvent.dispatchEvent("showOkMessage", "130018", !0) : e.length < 8 && i.length < 8 ? this.clientEvent.dispatchEvent("showOkMessage", "130020", !0) : this.loginLogic.resetPasswd(t, "", e)
            },
            resetPasswdSuccess: function() {
                var t = this.protocol.getFieldValue("ResetPasswdNewRespone", "result");
                switch (t) {
                case 0:
                    this.clientEvent.dispatchEvent("showOkMessage", "130233", !0);
                    break;
                case - 1 : this.clientEvent.dispatchEvent("showOkMessage", "130011", !0);
                    break;
                case - 2 : this.clientEvent.dispatchEvent("showOkMessage", "130009", !0);
                    break;
                case - 3 : this.clientEvent.dispatchEvent("showOkMessage", "150112", !0);
                    break;
                case - 4 : this.clientEvent.dispatchEvent("showOkMessage", "130239", !0);
                    break;
                case - 5 : this.clientEvent.dispatchEvent("showOkMessage", "130309", !0)
                }
            },
            realName: function() {
                var t = this.IDNumberEdiBox.string,
                e = this.IDNameEdiBox.string;
                if (0 === t.length) this.clientEvent.dispatchEvent("showOkMessage", "150030", !0);
                else if (0 === e.length) this.clientEvent.dispatchEvent("showOkMessage", "150031", !0);
                else if (18 !== t.length) this.clientEvent.dispatchEvent("showOkMessage", "150029", !0);
                else {
                    var i = this,
                    n = {
                        message: this.dictLogic.getLanguage("130064")[1],
                        button1: {
                            name: kf.require("util.lang").get("MBCANCEL"),
                            frame: 0,
                            callback: function() {}
                        },
                        button3: {
                            name: kf.require("util.lang").get("MBOK"),
                            frame: 1,
                            callback: function() {
                                i.loginLogic.realName(t, e)
                            }
                        }
                    };
                    this.clientEvent.dispatchEvent("showMessage", n)
                }
            },
            changeAccount: function() {
                if (this.phoneString = this.cagPhoneEditBox.string, this.passwordString = this.cagPasswordEditBox.string, 0 === this.phoneString.length) this.clientEvent.dispatchEvent("showOkMessage", "130075", !0);
                else if (0 === this.passwordString.length) this.clientEvent.dispatchEvent("showOkMessage", "130076", !0);
                else {
                    var t = {
                        message: this.dictLogic.getLanguage("130077")[1],
                        button1: {
                            name: this.lang.get("MBCANCEL"),
                            frame: 1,
                            callback: function() {}
                        },
                        button3: {
                            name: this.lang.get("MBOK"),
                            frame: 0,
                            callback: function() {
                                this.headNode.active = !1,
                                this.configuration.setAccountInfo(this.phoneString, this.passwordString),
                                this.configuration.save(),
                                this.loginLogic.logout(),
                                this.clientEvent.dispatchEvent("closeMessage")
                            }.bind(this)
                        }
                    };
                    this.clientEvent.dispatchEvent("showMessage", t)
                }
            },
            changeHead: function() {
                for (var t = 0; t < this.headArr.length; t++) this.headArr[t].on("touchend",
                function(t) {
                    for (var e = 0; e < 6; e++) this.headArr[e].anchorY = .5;
                    this.touchHead = t.target,
                    this.touchHead.anchorY = .2
                },
                this)
            },
            initialHead: function() {
                this.loginLogic.loginInfo.icon && (this.informationHead.spriteFrame = this.spfHeadArr[Number(this.loginLogic.loginInfo.icon) - 1], this.informaHead.spriteFrame = this.spfHeadArr[Number(this.loginLogic.loginInfo.icon) - 1])
            },
            showFinger: function() {
                var t = this.protocol.getFieldValue("LoginRespone", "mobile");
                t && (this.inputBox.active = !1, this.prompt_frame.active = !1, this.bindingNode.getChildByName("buttonPhone").getChildByName("phone").getComponent(cc.Label).string = t, this.bindingNode.getChildByName("buttonPhone").getComponent(cc.Button).interactable = !1)
            },
            showNick: function() {
                if (this.protocol.getFieldValue("LoginRespone", "nick")) {
                    var t = this.protocol.getFieldValue("LoginRespone", "nick");
                    this.nameStr.string = t,
                    this.nameEditBox.string = t
                }
            },
            submitHead: function() {
                var t = {
                    message: this.lang.get("change"),
                    button1: {
                        name: this.lang.get("MBCANCEL"),
                        frame: 1,
                        callback: function() {}
                    },
                    button3: {
                        name: this.lang.get("MBOK"),
                        frame: 0,
                        callback: function() {
                            if (this.headNode.active = !1, this.bindingNode.active = !0, void 0 !== this.touchHead) {
                                var t = this.touchHead.getComponent(cc.Sprite).spriteFrame.name;
                                this.loginLogic.UserInformation(5, t, ""),
                                this.loginLogic.loginInfo.icon = this.touchHead.name;
                                var e = this.node.parent.parent.getChildByName("title_back").getChildByName("head").getComponent(cc.Sprite);
                                e.spriteFrame = this.spfHeadArr[this.touchHead.name - 1],
                                this.informationHead.spriteFrame = this.spfHeadArr[parseInt(this.touchHead.name - 1)]
                            }
                        }.bind(this)
                    }
                };
                this.clientEvent.dispatchEvent("showMessage", t)
            },
            binding: function() {
                this.buttonBindingOn.active = !0,
                this.buttonAccountOn.active = !1,
                this.buttonCertificationOn.active = !1,
                this.bindingNode.active = !0,
                this.accountNode.active = !1,
                this.idCardNode.active = !1,
                this.nicknameNode.active = !1,
                this.bindPhoneNode.active = !1,
                this.headNode.active = !1,
                this.ChangePasswd.active = !1
            },
            account: function() {
                2 === this.loginLogic.loginInfo.mode ? this.clientEvent.dispatchEvent("showOkMessage", "weixinLogin", !1) : (this.buttonBindingOn.active = !1, this.buttonAccountOn.active = !0, this.buttonCertificationOn.active = !1, this.bindingNode.active = !1, this.accountNode.active = !0, this.idCardNode.active = !1, this.nicknameNode.active = !1, this.bindPhoneNode.active = !1, this.headNode.active = !1, this.ChangePasswd.active = !1)
            },
            certification: function() {
                this.buttonBindingOn.active = !1,
                this.buttonAccountOn.active = !1,
                this.buttonCertificationOn.active = !0,
                this.bindingNode.active = !1,
                this.accountNode.active = !1,
                this.idCardNode.active = !0,
                this.nicknameNode.active = !1,
                this.bindPhoneNode.active = !1,
                this.headNode.active = !1,
                this.ChangePasswd.active = !1,
                this.loginLogic.getRealName()
            },
            nickname: function() {
                this.nicknameNode.active = !0,
                this.bindingNode.active = !1;
                var t = this.loginLogic.changeNickFree === !0 || void 0 === this.loginLogic.changeNickFree;
                this.freeCoin.active = t,
                this.fiveCoin.active = !t
            },
            nicknameBack: function() {
                this.nicknameNode.active = !1,
                this.bindingNode.active = !0
            },
            bindPhone: function() {
                this.bindPhoneNode.active = !0,
                this.bindingNode.active = !1
            },
            bindPhoneBack: function() {
                this.bindPhoneNode.active = !1,
                this.bindingNode.active = !0
            },
            head: function() {
                this.bindingNode.getChildByName("buttonHead").on("touchend",
                function(t) {
                    this.headNode.active = !0,
                    this.bindingNode.active = !1
                },
                this)
            },
            getSmsCode: function() {
                var t = this.oldPsWdEditBox.string;
                0 === t.length ? this.clientEvent.dispatchEvent("showOkMessage", "130008", !0) : 11 !== t.length ? this.clientEvent.dispatchEvent("showOkMessage", "130011", !0) : this.loginLogic.registerVerifyRequest(t)
            },
            headBack: function() {
                this.headNode.active = !1,
                this.bindingNode.active = !0
            },
            changePsWd: function() {
                return this.protocol.getFieldValue("LoginRespone", "mobile") ? (this.ChangePasswd.active = !0, void(this.bindingNode.active = !1)) : void this.clientEvent.dispatchEvent("showOkMessage", "130071", !0);
            },
            changePsWdBack: function() {
                this.ChangePasswd.active = !1,
                this.bindingNode.active = !0
            },
            update: function(t) {
                this.isCount && (this.count -= t, this.LabelGetSmsCode.string = parseInt(this.count), this.count < 0 && (this.isCount = !1, this.btnGetSmsCode.opacity = 255, this.btnGetSmsCode.getComponent(cc.Button).interactable = !0, this.LabelGetSmsCode.string = this.dictLogic.getLanguage("122068")[1]))
            }
        }),
        cc._RFpop()
    },
    {}],
    help: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "d9371npo91ENqv/4RINlEew", "help"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                fishIconLabels: [cc.Label]
            },
            onLoad: function() {
                this.dictLogic = kf.require("logic.dict"),
                this.buttonManager = kf.require("util.buttonManager")
            },
            init: function() {
                for (var t = 0; t < this.fishIconLabels.length; t++) {
                    var e = Number(this.fishIconLabels[t].node.name),
                    i = this.dictLogic.getFishBaseScore(e);
                    this.fishIconLabels[t].string = i
                }
            },
            close: function() {
                this.buttonManager.close(this.node.parent, this.node.name, !1)
            }
        }),
        cc._RFpop()
    },
    {}],
    lang: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "828a9yhL+lByboOtqiyvysk", "lang"),
        window.util.lang = function() {
            var t = {};
            return t.init = function(t) {
                var e = kf.require("word." + (t || "cn"));
                this.lanData = {};
                var i;
                for (var n in e) e.hasOwnProperty(n) && (i = e[n], this.lanData[n] = i)
            },
            t.get = function(e) {
                var i = t.lanData.raw[e];
                return i ? arguments.length > 1 ? (arguments[0] = i, string.format.apply(this, arguments)) : i: e
            },
            t.changeNumberToChina = function(t) {
                switch (t) {
                case 0:
                    return "零";
                case 1:
                    return "一";
                case 2:
                    return "二";
                case 3:
                    return "三";
                case 4:
                    return "四";
                case 5:
                    return "五";
                case 6:
                    return "六";
                case 7:
                    return "七";
                case 8:
                    return "八";
                case 9:
                    return "九"
                }
                return "零"
            },
            t
        },
        cc._RFpop()
    },
    {}],
    loginNotice: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "6ab72kTEjxKN6sCYeQnM6KK", "loginNotice"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                tick: cc.Node,
                protocol: cc.Prefab,
                title: cc.RichText,
                note: cc.RichText,
                time: cc.RichText
            },
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent"),
                this.loginLogic = kf.require("logic.login"),
                this.dictLogic = kf.require("logic.dict"),
                this.node.active = !1,
                this.registerMsg()
            },
            start: function() {
                this.loginLogic.sendNotice()
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerMsg: function() {
                this.registerHandler = [["showNotice", this.showNotice.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            closePopUp: function() {
                this.tick.active === !1 ? this.clientEvent.dispatchEvent("showOkMessage", "150001", !0) : (this.clientEvent.dispatchEvent("showWaiting", !kf.require("logic.preload").canWeLogin()), this.loginLogic.loginInfo.login || 2 !== this.loginLogic.loginInfo.mode ? 1 === this.loginLogic.loginInfo.mode && (cc.find("Canvas/loginScene").active = !0) : (this.loginLogic.loginThird(), this.clientEvent.dispatchEvent("showWaiting", !0)), this.node.active = !1)
            },
            input: function() {
                this.tick.active = !0
            },
            image_tick: function() {
                this.tick.active = !1
            },
            protocolPopup: function() {
                kf.require("util.buttonManager").open(this.node, "protocol", this.protocol)
            },
            showNotice: function(t) {
                t && (this.title.string = t.NoticeTitle, this.note.string = t.NoticeNote, this.time.string = t.NoticeTime)
            }
        }),
        cc._RFpop()
    },
    {}],
    loginScene: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "cbaf16pojpE9rXhxHeI4t9F", "loginScene"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                accountEditBox: cc.EditBox,
                passwordEditBox: cc.EditBox,
                hallScene: cc.Node,
                loginBg: cc.Node,
                tick: cc.Node,
                hallSceneNode: cc.Node
            },
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent"),
                this.loginLogic = kf.require("logic.login"),
                this.protocol = kf.require("util.byteProtocol"),
                this.hallLogic = kf.require("logic.hall"),
                this.lang = kf.require("util.lang"),
                this.dictLogic = kf.require("logic.dict");
                var t = kf.require("util.configuration");
                this.accountEditBox.string = t.getAccount(),
                this.passwordEditBox.string = t.getPassword(),
                this.hallLogic.setButtonTouch(!0),
                this.registerMsg(),
                this.loginLogic.autoLogin(),
                this.node.active = !1
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerMsg: function() {
                this.registerHandler = [["loginSuccess", this.loginSuccess.bind(this)], ["loginResponeSuccess", this.loginResponeSuccess.bind(this)], ["afterLoadButtonConfig", this.checkBtnState.bind(this)], ["registerAccSuccess", this.registerAccSuccess.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            loginSuccess: function() {
                this.loginBg.active = !1,
                this.node.active = !1,
                this.hallScene.active = !0
            },
            loginResponeSuccess: function() {
                if (this.protocol.getFieldValue("protoAuthorizeResp", "errcode")) {
                    var t = this.protocol.getFieldValue("protoAuthorizeResp", "errcode");
                    switch (t) {
                    case 0:
                        return;
                    case 7:
                        var e = "errPasswd";
                        break;
                    case 8:
                        var e = "errRepeat";
                        break;
                    case 11:
                        var e = "errSys";
                        break;
                    case 13:
                        var e = "errAccount";
                        break;
                    case 15:
                        var e = "errMorelogin";
                        break;
                    case 17:
                        var e = "errPassTime"
                    }
                    this.clientEvent.dispatchEvent("showOkMessage", e, !1)
                }
            },
            changeHallScene: function() {
                if (this.hallLogic.canTouchButton) {
                    this.hallLogic.setButtonTouch(!1);
                    var t = this.accountEditBox.string,
                    e = this.passwordEditBox.string;
                    this.tick.active === !1 ? this.clientEvent.dispatchEvent("showOkMessage", "150001", !0) : 0 === t.length ? this.clientEvent.dispatchEvent("showOkMessage", "130060", !0) : 0 === e.length ? this.clientEvent.dispatchEvent("showOkMessage", "130061", !0) : (this.clientEvent.dispatchEvent("showWaiting", !0), this.loginLogic.login(t, e)),
                    this.scheduleOnce(function() {
                        this.hallLogic.setButtonTouch(!0)
                    },
                    this.hallLogic.turnOnButtonTime)
                }
            },
            guestLogin: function() {
                function t(t, e) {
                    var i = e - t + 1;
                    return Math.floor(Math.random() * i + t)
                }
                if (this.hallLogic.canTouchButton) {
                    this.hallLogic.setButtonTouch(!1);
                    var e = 1e10,
                    i = 99999999999,
                    n = t(e, i);
                    this.accountEditBox.string = n;
                    var s = "123456789";
                    this.passwordEditBox.string = s,
                    this.clientEvent.dispatchEvent("showWaiting", !0),
                    this.loginLogic.registerAcc(n.toString(), 9999, s),
                    this.scheduleOnce(function() {
                        this.hallLogic.setButtonTouch(!0)
                    },
                    this.hallLogic.turnOnButtonTime)
                }
            },
            registerAccSuccess: function() {
                var t = this.protocol.getFieldValue("protoRegisterResponse", "result");
                if (0 === t) {
                    var e = this.node.getChildByName("register");
                    if (1 != e.active) {
                        var i = this.accountEditBox.string,
                        n = this.passwordEditBox.string;
                        this.loginLogic.login(i.toString(), n.toString())
                    }
                }
            },
            checkBtnState: function() {
                for (var t = this.hallSceneNode.getComponent("hallScene"), e = 0; e < t.btnArry.length; e++) {
                    var i = this.dictLogic.getButtonState(e + 1);
                    t.btnArry[e].active = i
                }
            }
        }),
        cc._RFpop()
    },
    {}],
    login: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "adc35IJMH5PCo9Hod0BbW4N", "login"),
        window.logic.login = function() {
            var t = {},
            e = kf.require("util.lang"),
            i = kf.require("util.network"),
            n = kf.require("basic.clientEvent"),
            s = kf.require("util.configuration"),
            o = kf.require("util.byteProtocol");
            return t.init = function() {
                this.loginInfo = this.loginInfo || {
                    mode: 1,
                    showTips: !0,
                    auto: !1,
                    login: !1,
                    callback: null
                },
                this.registerMsg(),
                window.window.clientConfig ? this.initServer(0) : cc.loader.loadRes("config",
                function(t, e) {
                    window.clientConfig = e,
                    this.initServer(0),
                    n.dispatchEvent("preloadFinish", "clientConfig")
                }.bind(this))
            },
            t.registerMsg = function() {
                i.registerEvent("LoginRespone",
                function(t) {
                    this.loginInfo.uin = o.getFieldValueEx(t, "uin"),
                    this.loginInfo.nick = o.getFieldValueEx(t, "nick"),
                    this.loginInfo.login = !0,
                    kf.require("logic.hall").setFirstIntoHall(!0),
                    kf.require("logic.hall").newMailListRequest(),
                    this.loginInfo.icon = o.getFieldValueEx(t, "icon"),
                    n.dispatchEvent("loginSuccess", t),
                    n.dispatchEvent("getHeadSuccess", t)
                }.bind(this)),
                i.registerEvent("protoAuthorizeResp",
                function(t) {
                    n.dispatchEvent("loginResponeSuccess", t)
                }.bind(this)),
                i.registerEvent("protoRegisterResponse",
                function(t) {
                    n.dispatchEvent("registerAccSuccess", t)
                }.bind(this)),
                i.registerEvent("UpdateAcctInfoRespone",
                function(t) {
                    n.dispatchEvent("userInformationSuccess", t)
                }.bind(this)),
                i.registerEvent("GetNickIfUpdateRespone",
                function(t) {}.bind(this)),
                i.registerEvent("protoSubmitIdInfoRespone",
                function(t) {
                    n.dispatchEvent("realNameSuccess", t)
                }.bind(this)),
                i.registerEvent("protoQueryIdInfoRespone",
                function(t) {
                    n.dispatchEvent("getRealNameSuccess", t)
                }.bind(this)),
                i.registerEvent("GetPlayerPicRespone",
                function(t) {
                    n.dispatchEvent("getHeadSuccess", t)
                }.bind(this)),
                i.registerEvent("FindPasswdVerifyCodeNewRespone",
                function(t) {
                    n.dispatchEvent("findPawdGetCodeSuccess", t)
                }.bind(this)),
                i.registerEvent("ResetPasswdNewRespone",
                function(t) {
                    n.dispatchEvent("resetPasswdSuccess", t)
                }.bind(this)),
                i.registerEvent("UpdateSvrNoticeRespone",
                function(t) {
                    n.dispatchEvent("getListSuccess", t)
                }.bind(this)),
                i.registerEvent("RechargeRespone",
                function(t) {
                    var e = o.getFieldValueEx(t, "uin");
                    this.isPlayer(e) && (o.setFieldValue("LoginRespone", "money", o.getFieldValueEx(t, "money")), o.setFieldValue("LoginRespone", "coin", o.getFieldValueEx(t, "coin")), o.setFieldValue("LoginRespone", "ticket", o.getFieldValueEx(t, "ticket")), n.dispatchEvent("updateMoney"))
                }.bind(this)),
                i.registerEvent("CloseClientErrorRespone",
                function(t) {
                    this.loginInfo.login = !1;
                    var i, s = parseInt(o.getFieldValueEx(t, "error_code"));
                    switch (s) {
                    case 1001:
                    case 1002:
                    case 1003:
                    case 1005:
                    case 1006:
                    case 1007:
                        i = {
                            message: e.get(s + ""),
                            button2: {
                                name: e.get("MBOK"),
                                frame: 0,
                                callback: function() {}
                            }
                        };
                        break;
                    case 1004:
                        i = {
                            message: e.get(s + ""),
                            button2: {
                                name: e.get("MBOK"),
                                frame: 0,
                                callback: function() {
                                    cc.director.loadScene("hallScene2")
                                }
                            }
                        };
                        break;
                    case 1008:
                        this.loginInfo.auto = !0,
                        i = {
                            message: e.get(s + ""),
                            button2: {
                                name: e.get("MBOK"),
                                frame: 0,
                                callback: function() {
                                    cc.director.loadScene("hallScene2")
                                }
                            }
                        };
                        break;
                    case 1009:
                        this.loginInfo.auto = !0,
                        i = {
                            message: e.get("changeAcc")
                        },
                        setTimeout(function() {
                            cc.director.loadScene("hallScene2", this.callback = function() {
                                n.dispatchEvent("closeMessage2")
                            })
                        },
                        500)
                    }
                    n.dispatchEvent("showMessage", i)
                }.bind(this)),
                i.registerEvent("RegisterCodeResponse",
                function(t) {
                    var e, i = 0;
                    switch (i) {
                    case 0:
                        return void n.dispatchEvent("registerVerifySuccess");
                    case 1:
                        e = "phoneError";
                        break;
                    case 2:
                        e = "phoneUse"
                    }
                    n.dispatchEvent("showOkMessage", e, !1)
                }.bind(this)),
                n.registerEvent("networkConnect",
                function(t) {
                    if (!this.loginInfo.login) return void setTimeout(function() {
                        this.connect(this.loginInfo.callback)
                    }.bind(this), .3);
                    this.loginInfo.login = !1;
                    var i = {
                        message: e.get(t),
                        button2: {
                            name: e.get("MBOK"),
                            frame: 0,
                            callback: function() {
                                cc.director.loadScene("hallScene2")
                            }
                        }
                    };
                    n.dispatchEvent("showMessage", i)
                }.bind(this)),
                i.registerEvent("QueryFlagInfoResponse",
                function(t) {
                    this.flagData = o.getFieldValueEx(t, "flag"),
                    this.valueData = o.getFieldValueEx(t, "value"),
                    this.checkValue(5, this.flagData, this.valueData) && (this.changeNickFree = !0)
                }.bind(this))
            },
            t.initServer = function(t) {
                var e = window.clientConfig.LOGIN_LIST[t];
                e && (this.ip = e.ip, this.port = e.port, this.initLoginMode())
            },
            t.initLoginMode = function() {
                if (isWeixinBrowser()) {
                    var t = getCookie(window.clientConfig.cookieName);
                    t && (t = JSON.parse(t), this.loginInfo.mode = 2, this.loginInfo.openId = t.openid)
                }
            },
            t.getOpenId = function() {
                return this.loginInfo.openId
            },
            t.getUin = function() {
                return this.loginInfo.uin
            },
            t.connect = function(t) {
                this.loginInfo.callback = t,
                i.connect(this.ip, this.port, t)
            },
            t.login = function(t, e) {
                0 !== t.length && 0 !== e.length && (s.setAccountInfo(t, e), s.save(), this.loginInfo.mode = 1, this.connect(function() {
                    this.loginInfo.callback = null;
                    var n = [t, t, e, 0, window.clientConfig.source, 0, window.clientConfig.version, window.clientConfig.channel, 0, 0, 0, ""];
                    i.send("NewLoginRequest", n)
                }.bind(this)))
            },
            t.loginThird = function() {
                this.connect(function() {
                    if (this.loginInfo.callback = null, 2 === t.loginInfo.mode) {
                        var e = [this.loginInfo.openId];
                        i.send("wxLoginRequest", e)
                    }
                }.bind(this))
            },
            t.registerAcc = function(t, e, n) {
                this.connect(function() {
                    this.loginInfo.callback = null;
                    var s = [t, parseInt(e), n, t, window.clientConfig.source, window.clientConfig.channel, window.clientConfig.version, 0, 0, "0"];
                    i.send("protoRegisterRequest", s)
                }.bind(this))
            },
            t.getList = function() {},
            t.UserInformation = function(t, e, n) {
                var s = [this.loginInfo.uin, t, e, n];
                i.send("UpdateAcctInfoRequest", s)
            },
            t.getNickNumber = function() {
                var t = [this.loginInfo.uin];
                i.send("GetNickIfUpdateRequest", t)
            },
            t.getHead = function() {
                var t = this.loginInfo.uin.toString(),
                e = [1, t];
                i.send("GetPlayerPicRequest", e)
            },
            t.getBroadcast = function() {
                var t = [this.loginInfo.uin];
                i.send("OrderBroadcastRequest", t)
            },
            t.queryFlagInfoRequest = function() {
                i.send("QueryFlagInfoRequest")
            },
            t.autoLogin = function() {
                this.loginInfo.login || (1 === this.loginInfo.mode && this.loginInfo.auto ? (this.loginInfo.auto = !1, this.login(s.getAccount(), s.getPassword())) : 2 === this.loginInfo.mode && (this.canWxLogin = !0))
            },
            t.changeAccount = function(t, e) {
                this.connect(function() {
                    this.loginInfo.callback = null;
                    var n = [t, t, e, 0, window.clientConfig.source, 1, window.clientConfig.version, window.clientConfig.channel, 0, 0, 0, ""];
                    i.send("NewLoginRequest", n)
                }.bind(this))
            },
            t.logout = function() {
                var t = [this.loginInfo.uin];
                i.send("LogoutRequest", t)
            },
            t.realName = function(t, e) {
                var n = [this.loginInfo.uin, t, e];
                i.send("protoSubmitIdInfoRequest", n)
            },
            t.getRealName = function() {
                var t = [this.loginInfo.uin];
                i.send("protoQueryIdInfoRequest", t)
            },
            t.findPswdGetSmscode = function(t) {
                this.connect(function() {
                    this.loginInfo.callback = null;
                    var e = [t, window.clientConfig.channel, 2];
                    i.send("FindPasswdVerifyCodeNewRequest", e)
                }.bind(this))
            },
            t.resetPasswd = function(t, e, n) {
                this.connect(function() {
                    this.loginInfo.callback = null;
                    var s = [t, window.clientConfig.channel, e, n, window.clientConfig.source];
                    i.send("ResetPasswdNewRequest", s)
                }.bind(this))
            },
            t.isPlayer = function(t) {
                return this.loginInfo.uin === t
            },
            t.checkValue = function(t, e, i) {
                for (var n = !0,
                s = 0; s < e.length; s++) {
                    var o = e[s],
                    a = i[s];
                    o === t && a && 0 !== a && (n = !1)
                }
                return n
            },
            t.responseSms = function(t, e) { ["loadstart", "abort", "error", "load", "loadend", "timeout"].forEach(function(e) {
                    t["on" + e] = function() {}
                }.bind(this)),
                t.onreadystatechange = function() {
                    if (4 === t.readyState && t.status >= 200 && t.status <= 207) {
                        var e = JSON.parse(t.responseText);
                        this.loginInfo.smsResultCode = e.result;
                        var i = "smsResult" + this.loginInfo.smsResultCode;
                        n.dispatchEvent("showOkMessage", i, !1)
                    }
                }.bind(this)
            },
            t.registerVerifyRequest = function(t) {
                this.connect(function() {
                    this.loginInfo.callback = null;
                    var e = [t];
                    i.send("RegisterCodeRequest", e)
                }.bind(this))
            },
            t.sendSms = function(t) {
                var e = cc.loader.getXMLHttpRequest();
                this.responseSms(e, "GET"),
                e.timeout = 5e3,
                e.open("GET", window.clientConfig.weixin.authorizeURL + "/sms?phone=" + t, !0),
                e.send()
            },
            t.sendNotice = function() {
                var t = cc.loader.getXMLHttpRequest();
                this.responseNotice(t, "GET"),
                t.timeout = 5e3,
                t.open("GET", window.clientConfig.gameNotice, !0),
                t.send()
            },
            t.responseNotice = function(t, e) { ["loadstart", "abort", "error", "load", "loadend", "timeout"].forEach(function(e) {
                    t["on" + e] = function() {}
                }.bind(this)),
                t.onreadystatechange = function() {
                    if (4 === t.readyState && t.status >= 200 && t.status <= 207) {
                        var e = t.responseText.split("<div id='data_container' onclick='edit();'>"),
                        i = e[1].split("</div>"),
                        s = i[0].replace(/&#34;/g, '"'),
                        o = JSON.parse(s);
                        kf.require("logic.dict").Notice = o,
                        n.dispatchEvent("showNotice", o)
                    }
                }.bind(this)
            },
            t
        },
        cc._RFpop()
    },
    {}],
    "long": [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "a5ac4JSQ7NKfr9NQlQchoSJ", "long"),
        function(i, n) {
            "function" == typeof define && define.amd ? define([], n) : "function" == typeof t && "object" == typeof e && e && e.exports ? e.exports = n() : (i.dcodeIO = i.dcodeIO || {}).Long = n()
        } (this,
        function() {
            function t(t, e, i) {
                this.low = 0 | t,
                this.high = 0 | e,
                this.unsigned = !!i
            }
            function e(t) {
                return (t && t.__isLong__) === !0
            }
            function i(t, e) {
                var i, n, o;
                return e ? (t >>>= 0, (o = 0 <= t && t < 256) && (n = c[t]) ? n: (i = s(t, (0 | t) < 0 ? -1 : 0, !0), o && (c[t] = i), i)) : (t |= 0, (o = -128 <= t && t < 128) && (n = r[t]) ? n: (i = s(t, t < 0 ? -1 : 0, !1), o && (r[t] = i), i))
            }
            function n(t, e) {
                if (isNaN(t) || !isFinite(t)) return e ? v: f;
                if (e) {
                    if (t < 0) return v;
                    if (t >= d) return k
                } else {
                    if (t <= -u) return E;
                    if (t + 1 >= u) return L
                }
                return t < 0 ? n( - t, e).neg() : s(t % g | 0, t / g | 0, e)
            }
            function s(e, i, n) {
                return new t(e, i, n)
            }
            function o(t, e, i) {
                if (0 === t.length) throw Error("empty string");
                if ("NaN" === t || "Infinity" === t || "+Infinity" === t || "-Infinity" === t) return f;
                if ("number" == typeof e ? (i = e, e = !1) : e = !!e, i = i || 10, i < 2 || 36 < i) throw RangeError("radix");
                var s;
                if ((s = t.indexOf("-")) > 0) throw Error("interior hyphen");
                if (0 === s) return o(t.substring(1), e, i).neg();
                for (var a = n(h(i, 8)), r = f, c = 0; c < t.length; c += 8) {
                    var l = Math.min(8, t.length - c),
                    g = parseInt(t.substring(c, c + l), i);
                    if (l < 8) {
                        var d = n(h(i, l));
                        r = r.mul(d).add(n(g))
                    } else r = r.mul(a),
                    r = r.add(n(g))
                }
                return r.unsigned = e,
                r
            }
            function a(e) {
                return e instanceof t ? e: "number" == typeof e ? n(e) : "string" == typeof e ? o(e) : s(e.low, e.high, e.unsigned)
            }
            t.prototype.__isLong__,
            Object.defineProperty(t.prototype, "__isLong__", {
                value: !0,
                enumerable: !1,
                configurable: !1
            }),
            t.isLong = e;
            var r = {},
            c = {};
            t.fromInt = i,
            t.fromNumber = n,
            t.fromBits = s;
            var h = Math.pow;
            t.fromString = o,
            t.fromValue = a;
            var l = 1 << 24,
            g = 4294967296,
            d = 0x10000000000000000,
            u = d / 2,
            p = i(l),
            f = i(0);
            t.ZERO = f;
            var v = i(0, !0);
            t.UZERO = v;
            var m = i(1);
            t.ONE = m;
            var b = i(1, !0);
            t.UONE = b;
            var C = i( - 1);
            t.NEG_ONE = C;
            var L = s( - 1, 2147483647, !1);
            t.MAX_VALUE = L;
            var k = s( - 1, -1, !0);
            t.MAX_UNSIGNED_VALUE = k;
            var E = s(0, -2147483648, !1);
            t.MIN_VALUE = E;
            var y = t.prototype;
            return y.toInt = function() {
                return this.unsigned ? this.low >>> 0 : this.low
            },
            y.toNumber = function() {
                return this.unsigned ? (this.high >>> 0) * g + (this.low >>> 0) : this.high * g + (this.low >>> 0)
            },
            y.toString = function(t) {
                if (t = t || 10, t < 2 || 36 < t) throw RangeError("radix");
                if (this.isZero()) return "0";
                if (this.isNegative()) {
                    if (this.eq(E)) {
                        var e = n(t),
                        i = this.div(e),
                        s = i.mul(e).sub(this);
                        return i.toString(t) + s.toInt().toString(t)
                    }
                    return "-" + this.neg().toString(t)
                }
                for (var o = n(h(t, 6), this.unsigned), a = this, r = "";;) {
                    var c = a.div(o),
                    l = a.sub(c.mul(o)).toInt() >>> 0,
                    g = l.toString(t);
                    if (a = c, a.isZero()) return g + r;
                    for (; g.length < 6;) g = "0" + g;
                    r = "" + g + r
                }
            },
            y.getHighBits = function() {
                return this.high
            },
            y.getHighBitsUnsigned = function() {
                return this.high >>> 0
            },
            y.getLowBits = function() {
                return this.low
            },
            y.getLowBitsUnsigned = function() {
                return this.low >>> 0
            },
            y.getNumBitsAbs = function() {
                if (this.isNegative()) return this.eq(E) ? 64 : this.neg().getNumBitsAbs();
                for (var t = 0 != this.high ? this.high: this.low, e = 31; e > 0 && 0 == (t & 1 << e); e--);
                return 0 != this.high ? e + 33 : e + 1
            },
            y.isZero = function() {
                return 0 === this.high && 0 === this.low
            },
            y.isNegative = function() {
                return ! this.unsigned && this.high < 0
            },
            y.isPositive = function() {
                return this.unsigned || this.high >= 0
            },
            y.isOdd = function() {
                return 1 === (1 & this.low)
            },
            y.isEven = function() {
                return 0 === (1 & this.low)
            },
            y.equals = function(t) {
                return e(t) || (t = a(t)),
                (this.unsigned === t.unsigned || this.high >>> 31 !== 1 || t.high >>> 31 !== 1) && (this.high === t.high && this.low === t.low)
            },
            y.eq = y.equals,
            y.notEquals = function(t) {
                return ! this.eq(t)
            },
            y.neq = y.notEquals,
            y.lessThan = function(t) {
                return this.comp(t) < 0
            },
            y.lt = y.lessThan,
            y.lessThanOrEqual = function(t) {
                return this.comp(t) <= 0
            },
            y.lte = y.lessThanOrEqual,
            y.greaterThan = function(t) {
                return this.comp(t) > 0
            },
            y.gt = y.greaterThan,
            y.greaterThanOrEqual = function(t) {
                return this.comp(t) >= 0
            },
            y.gte = y.greaterThanOrEqual,
            y.compare = function(t) {
                if (e(t) || (t = a(t)), this.eq(t)) return 0;
                var i = this.isNegative(),
                n = t.isNegative();
                return i && !n ? -1 : !i && n ? 1 : this.unsigned ? t.high >>> 0 > this.high >>> 0 || t.high === this.high && t.low >>> 0 > this.low >>> 0 ? -1 : 1 : this.sub(t).isNegative() ? -1 : 1
            },
            y.comp = y.compare,
            y.negate = function() {
                return ! this.unsigned && this.eq(E) ? E: this.not().add(m)
            },
            y.neg = y.negate,
            y.add = function(t) {
                e(t) || (t = a(t));
                var i = this.high >>> 16,
                n = 65535 & this.high,
                o = this.low >>> 16,
                r = 65535 & this.low,
                c = t.high >>> 16,
                h = 65535 & t.high,
                l = t.low >>> 16,
                g = 65535 & t.low,
                d = 0,
                u = 0,
                p = 0,
                f = 0;
                return f += r + g,
                p += f >>> 16,
                f &= 65535,
                p += o + l,
                u += p >>> 16,
                p &= 65535,
                u += n + h,
                d += u >>> 16,
                u &= 65535,
                d += i + c,
                d &= 65535,
                s(p << 16 | f, d << 16 | u, this.unsigned)
            },
            y.subtract = function(t) {
                return e(t) || (t = a(t)),
                this.add(t.neg())
            },
            y.sub = y.subtract,
            y.multiply = function(t) {
                if (this.isZero()) return f;
                if (e(t) || (t = a(t)), t.isZero()) return f;
                if (this.eq(E)) return t.isOdd() ? E: f;
                if (t.eq(E)) return this.isOdd() ? E: f;
                if (this.isNegative()) return t.isNegative() ? this.neg().mul(t.neg()) : this.neg().mul(t).neg();
                if (t.isNegative()) return this.mul(t.neg()).neg();
                if (this.lt(p) && t.lt(p)) return n(this.toNumber() * t.toNumber(), this.unsigned);
                var i = this.high >>> 16,
                o = 65535 & this.high,
                r = this.low >>> 16,
                c = 65535 & this.low,
                h = t.high >>> 16,
                l = 65535 & t.high,
                g = t.low >>> 16,
                d = 65535 & t.low,
                u = 0,
                v = 0,
                m = 0,
                b = 0;
                return b += c * d,
                m += b >>> 16,
                b &= 65535,
                m += r * d,
                v += m >>> 16,
                m &= 65535,
                m += c * g,
                v += m >>> 16,
                m &= 65535,
                v += o * d,
                u += v >>> 16,
                v &= 65535,
                v += r * g,
                u += v >>> 16,
                v &= 65535,
                v += c * l,
                u += v >>> 16,
                v &= 65535,
                u += i * d + o * g + r * l + c * h,
                u &= 65535,
                s(m << 16 | b, u << 16 | v, this.unsigned)
            },
            y.mul = y.multiply,
            y.divide = function(t) {
                if (e(t) || (t = a(t)), t.isZero()) throw Error("division by zero");
                if (this.isZero()) return this.unsigned ? v: f;
                var i, s, o;
                if (this.unsigned) {
                    if (t.unsigned || (t = t.toUnsigned()), t.gt(this)) return v;
                    if (t.gt(this.shru(1))) return b;
                    o = v
                } else {
                    if (this.eq(E)) {
                        if (t.eq(m) || t.eq(C)) return E;
                        if (t.eq(E)) return m;
                        var r = this.shr(1);
                        return i = r.div(t).shl(1),
                        i.eq(f) ? t.isNegative() ? m: C: (s = this.sub(t.mul(i)), o = i.add(s.div(t)))
                    }
                    if (t.eq(E)) return this.unsigned ? v: f;
                    if (this.isNegative()) return t.isNegative() ? this.neg().div(t.neg()) : this.neg().div(t).neg();
                    if (t.isNegative()) return this.div(t.neg()).neg();
                    o = f
                }
                for (s = this; s.gte(t);) {
                    i = Math.max(1, Math.floor(s.toNumber() / t.toNumber()));
                    for (var c = Math.ceil(Math.log(i) / Math.LN2), l = c <= 48 ? 1 : h(2, c - 48), g = n(i), d = g.mul(t); d.isNegative() || d.gt(s);) i -= l,
                    g = n(i, this.unsigned),
                    d = g.mul(t);
                    g.isZero() && (g = m),
                    o = o.add(g),
                    s = s.sub(d)
                }
                return o
            },
            y.div = y.divide,
            y.modulo = function(t) {
                return e(t) || (t = a(t)),
                this.sub(this.div(t).mul(t))
            },
            y.mod = y.modulo,
            y.not = function() {
                return s(~this.low, ~this.high, this.unsigned)
            },
            y.and = function(t) {
                return e(t) || (t = a(t)),
                s(this.low & t.low, this.high & t.high, this.unsigned)
            },
            y.or = function(t) {
                return e(t) || (t = a(t)),
                s(this.low | t.low, this.high | t.high, this.unsigned)
            },
            y.xor = function(t) {
                return e(t) || (t = a(t)),
                s(this.low ^ t.low, this.high ^ t.high, this.unsigned)
            },
            y.shiftLeft = function(t) {
                return e(t) && (t = t.toInt()),
                0 === (t &= 63) ? this: t < 32 ? s(this.low << t, this.high << t | this.low >>> 32 - t, this.unsigned) : s(0, this.low << t - 32, this.unsigned)
            },
            y.shl = y.shiftLeft,
            y.shiftRight = function(t) {
                return e(t) && (t = t.toInt()),
                0 === (t &= 63) ? this: t < 32 ? s(this.low >>> t | this.high << 32 - t, this.high >> t, this.unsigned) : s(this.high >> t - 32, this.high >= 0 ? 0 : -1, this.unsigned)
            },
            y.shr = y.shiftRight,
            y.shiftRightUnsigned = function(t) {
                if (e(t) && (t = t.toInt()), t &= 63, 0 === t) return this;
                var i = this.high;
                if (t < 32) {
                    var n = this.low;
                    return s(n >>> t | i << 32 - t, i >>> t, this.unsigned)
                }
                return 32 === t ? s(i, 0, this.unsigned) : s(i >>> t - 32, 0, this.unsigned)
            },
            y.shru = y.shiftRightUnsigned,
            y.toSigned = function() {
                return this.unsigned ? s(this.low, this.high, !1) : this
            },
            y.toUnsigned = function() {
                return this.unsigned ? this: s(this.low, this.high, !0)
            },
            y.toBytes = function(t) {
                return t ? this.toBytesLE() : this.toBytesBE()
            },
            y.toBytesLE = function() {
                var t = this.high,
                e = this.low;
                return [255 & e, e >>> 8 & 255, e >>> 16 & 255, e >>> 24 & 255, 255 & t, t >>> 8 & 255, t >>> 16 & 255, t >>> 24 & 255]
            },
            y.toBytesBE = function() {
                var t = this.high,
                e = this.low;
                return [t >>> 24 & 255, t >>> 16 & 255, t >>> 8 & 255, 255 & t, e >>> 24 & 255, e >>> 16 & 255, e >>> 8 & 255, 255 & e]
            },
            t
        }),
        cc._RFpop()
    },
    {}],
    mailBag: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "85c339kKN5Lr6Y3Byzftrq2", "mailBag"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                mail: cc.Prefab,
                mailContent: cc.Node,
                noMail: cc.Node,
                mainMail: cc.Node,
                playerName: cc.Label,
                content: cc.Label,
                coin: cc.Node,
                ticket: cc.Node,
                item: cc.Node,
                getButton: cc.Node
            },
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent"),
                this.protocol = kf.require("util.byteProtocol"),
                this.lang = kf.require("util.lang"),
                this.hallLogic = kf.require("logic.hall"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.registerMsg()
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerMsg: function() {
                this.registerHandler = [["newMailList", this.updateMailList.bind(this)], ["readMail", this.readMail.bind(this)], ["closeMail", this.closeMail.bind(this)], ["oneKeyRemoveMail", this.updateMailList.bind(this)], ["oneKeyDrawMail", this.updateMailList.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            init: function() {
                this.updateMailList()
            },
            updateMailList: function() {
                for (var t = 0; t < this.hallLogic.mailList.length; t++) {
                    var e = this.hallLogic.mailList[t];
                    if (this.mailContent.children[t]) var i = this.mailContent.children[t];
                    else {
                        var i = cc.instantiate(this.mail);
                        i.parent = this.mailContent
                    }
                    i.getComponent("mail").init(e)
                }
                if (this.mailContent.children.length > this.hallLogic.mailList.length) for (var n = this.hallLogic.mailList.length; n < this.mailContent.children.length;) this.mailContent.children[n].destroy(),
                this.mailContent.removeChild(this.mailContent.children[n]);
                this.mailContent.active = !0;
                var s = 0 === this.mailContent.children.length;
                this.noMail.active = s
            },
            readMail: function(t) {
                this.mailId = t.mail_id;
                for (var e = 0; e < this.hallLogic.mailList.length; e++) if (this.hallLogic.mailList[e].mailId === this.mailId) {
                    if (3 !== this.hallLogic.mailList[e].status) break;
                    this.getButton.active = !1
                }
                this.mainMail.active = !0,
                this.content.string = t.content,
                this.playerName.string = kf.require("logic.dict").getLanguage("130038")[1] + this.protocol.getFieldValue("LoginRespone", "nick") + ":",
                0 === t.coin ? this.coin.active = !1 : (this.coin.active = !0, this.coin.getChildByName("label").getComponent(cc.Label).string = t.coin),
                0 === t.ticket ? this.ticket.active = !1 : (this.ticket.active = !0, this.ticket.getChildByName("label").getComponent(cc.Label).string = t.ticket),
                "" === t.items ? this.item.active = !1 : (this.item.active = !0, this.item.getChildByName("label").getComponent(cc.Label).string = t.items),
                this.mailContent.active = !1
            },
            closeMail: function() {
                this.mainMail.active = !1,
                this.mailContent.active = !0,
                this.updateMailList()
            },
            receive: function() {
                this.hallLogic.receiveMailRewardRequest(this.mailId)
            },
            deleteMail: function() {
                for (var t = 0; t < this.hallLogic.mailList.length; t++) if (this.mailId === this.hallLogic.mailList[t].mailId && this.hallLogic.mailList[t].status < 3) {
                    var e = {
                        message: this.lang.get("noReceiveReward"),
                        button1: {
                            name: this.lang.get("MBCANCEL"),
                            frame: 0,
                            callback: function() {}
                        },
                        button3: {
                            name: this.lang.get("MBOK"),
                            frame: 1,
                            callback: function() {
                                this.hallLogic.removeMailRequest(this.mailId)
                            }.bind(this)
                        }
                    };
                    return void this.clientEvent.dispatchEvent("showMessage", e)
                }
                this.hallLogic.removeMailRequest(this.mailId)
            },
            oneKeyDrawMail: function() {
                this.hallLogic.oneKeyDrawMailRequest()
            },
            oneKeyRemoveMail: function() {
                for (var t = 0; t < this.hallLogic.mailList.length; t++) if (this.hallLogic.mailList[t].status < 3) {
                    var e = {
                        message: this.lang.get("noReceiveReward"),
                        button1: {
                            name: this.lang.get("MBCANCEL"),
                            frame: 0,
                            callback: function() {}
                        },
                        button3: {
                            name: this.lang.get("MBOK"),
                            frame: 1,
                            callback: function() {
                                this.hallLogic.oneKeyRemoveMailRequest(this.mailId)
                            }.bind(this)
                        }
                    };
                    return void this.clientEvent.dispatchEvent("showMessage", e)
                }
                this.hallLogic.oneKeyRemoveMailRequest()
            },
            closePopUp: function() {
                this.buttonManager.close(this.node.parent, this.node.name, !0)
            }
        }),
        cc._RFpop()
    },
    {}],
    mail: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "57aabBDJ0ZJBK4fWTbrH54p", "mail"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                title: cc.Label,
                sendTime: cc.Label,
                mailClose: cc.Node,
                mailOpen: cc.Node,
                clip: cc.Node
            },
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent"),
                this.protocol = kf.require("util.byteProtocol"),
                this.hallLogic = kf.require("logic.hall"),
                this.clientEvent = kf.require("basic.clientEvent")
            },
            init: function(t) {
                var e = t;
                this.mailId = e.mailId,
                this.title.string = e.title;
                var i = new Date(1e3 * e.sendTime).toLocaleString();
                this.sendTime.string = i,
                this.mailClose.active = !(e.status > 1),
                this.mailOpen.active = e.status > 1,
                this.clip.active = e.status < 3
            },
            touchMail: function() {
                this.hallLogic.readNewMailRequest(this.mailId),
                this.mailClose.active && (this.mailClose.active = !1, this.mailOpen.active = !0)
            }
        }),
        cc._RFpop()
    },
    {}],
    masterDesk: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "ad451aXkg1CSYP/jib4UnrH", "masterDesk"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                tableContainer: cc.Node
            },
            onLoad: function() {
                this.dictLogic = kf.require("logic.dict"),
                this.protocol = kf.require("util.byteProtocol"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.canvas = cc.find("Canvas"),
                this.lang = kf.require("util.lang"),
                this.hallScene = this.canvas.getChildByName("hallScene").getComponent("hallScene"),
                this.clientEvent = kf.require("basic.clientEvent")
            },
            init: function() {
                this.tableContainer.getComponent("tableContainer").refreshTable()
            },
            fastIntoRoomRequest: function() {
                var t = this.protocol.getFieldValue("LoginRespone", "coin");
                if (t > 3e4) this.hallScene.fastIntoRoomRequest(),
                this.clientEvent.dispatchEvent("showWaiting", !0);
                else {
                    var e = this,
                    i = {
                        message: this.lang.get("noMoneyToRoom3"),
                        button1: {
                            name: this.lang.get("MBCANCEL"),
                            frame: 1,
                            callback: function() {}
                        },
                        button3: {
                            name: this.lang.get("MBMONEY"),
                            frame: 0,
                            callback: function() {
                                e.closePopUp(),
                                e.canvas.getChildByName("hallScene").getComponent("hallScene").shopPopUp()
                            }
                        }
                    };
                    this.clientEvent.dispatchEvent("showMessage", i)
                }
            },
            closePopUp: function() {
                this.buttonManager.close(this.node.parent, this.node.name, !0)
            }
        }),
        cc._RFpop()
    },
    {}],
    md5: [function(t, e, i) {
        "use strict";
        function n(t) {
            return u(s(d(t), t.length * f))
        }
        function s(t, e) {
            t[e >> 5] |= 128 << e % 32,
            t[(e + 64 >>> 9 << 4) + 14] = e;
            for (var i = 1732584193,
            n = -271733879,
            s = -1732584194,
            o = 271733878,
            g = 0; g < t.length; g += 16) {
                var d = i,
                u = n,
                p = s,
                f = o;
                i = a(i, n, s, o, t[g + 0], 7, -680876936),
                o = a(o, i, n, s, t[g + 1], 12, -389564586),
                s = a(s, o, i, n, t[g + 2], 17, 606105819),
                n = a(n, s, o, i, t[g + 3], 22, -1044525330),
                i = a(i, n, s, o, t[g + 4], 7, -176418897),
                o = a(o, i, n, s, t[g + 5], 12, 1200080426),
                s = a(s, o, i, n, t[g + 6], 17, -1473231341),
                n = a(n, s, o, i, t[g + 7], 22, -45705983),
                i = a(i, n, s, o, t[g + 8], 7, 1770035416),
                o = a(o, i, n, s, t[g + 9], 12, -1958414417),
                s = a(s, o, i, n, t[g + 10], 17, -42063),
                n = a(n, s, o, i, t[g + 11], 22, -1990404162),
                i = a(i, n, s, o, t[g + 12], 7, 1804603682),
                o = a(o, i, n, s, t[g + 13], 12, -40341101),
                s = a(s, o, i, n, t[g + 14], 17, -1502002290),
                n = a(n, s, o, i, t[g + 15], 22, 1236535329),
                i = r(i, n, s, o, t[g + 1], 5, -165796510),
                o = r(o, i, n, s, t[g + 6], 9, -1069501632),
                s = r(s, o, i, n, t[g + 11], 14, 643717713),
                n = r(n, s, o, i, t[g + 0], 20, -373897302),
                i = r(i, n, s, o, t[g + 5], 5, -701558691),
                o = r(o, i, n, s, t[g + 10], 9, 38016083),
                s = r(s, o, i, n, t[g + 15], 14, -660478335),
                n = r(n, s, o, i, t[g + 4], 20, -405537848),
                i = r(i, n, s, o, t[g + 9], 5, 568446438),
                o = r(o, i, n, s, t[g + 14], 9, -1019803690),
                s = r(s, o, i, n, t[g + 3], 14, -187363961),
                n = r(n, s, o, i, t[g + 8], 20, 1163531501),
                i = r(i, n, s, o, t[g + 13], 5, -1444681467),
                o = r(o, i, n, s, t[g + 2], 9, -51403784),
                s = r(s, o, i, n, t[g + 7], 14, 1735328473),
                n = r(n, s, o, i, t[g + 12], 20, -1926607734),
                i = c(i, n, s, o, t[g + 5], 4, -378558),
                o = c(o, i, n, s, t[g + 8], 11, -2022574463),
                s = c(s, o, i, n, t[g + 11], 16, 1839030562),
                n = c(n, s, o, i, t[g + 14], 23, -35309556),
                i = c(i, n, s, o, t[g + 1], 4, -1530992060),
                o = c(o, i, n, s, t[g + 4], 11, 1272893353),
                s = c(s, o, i, n, t[g + 7], 16, -155497632),
                n = c(n, s, o, i, t[g + 10], 23, -1094730640),
                i = c(i, n, s, o, t[g + 13], 4, 681279174),
                o = c(o, i, n, s, t[g + 0], 11, -358537222),
                s = c(s, o, i, n, t[g + 3], 16, -722521979),
                n = c(n, s, o, i, t[g + 6], 23, 76029189),
                i = c(i, n, s, o, t[g + 9], 4, -640364487),
                o = c(o, i, n, s, t[g + 12], 11, -421815835),
                s = c(s, o, i, n, t[g + 15], 16, 530742520),
                n = c(n, s, o, i, t[g + 2], 23, -995338651),
                i = h(i, n, s, o, t[g + 0], 6, -198630844),
                o = h(o, i, n, s, t[g + 7], 10, 1126891415),
                s = h(s, o, i, n, t[g + 14], 15, -1416354905),
                n = h(n, s, o, i, t[g + 5], 21, -57434055),
                i = h(i, n, s, o, t[g + 12], 6, 1700485571),
                o = h(o, i, n, s, t[g + 3], 10, -1894986606),
                s = h(s, o, i, n, t[g + 10], 15, -1051523),
                n = h(n, s, o, i, t[g + 1], 21, -2054922799),
                i = h(i, n, s, o, t[g + 8], 6, 1873313359),
                o = h(o, i, n, s, t[g + 15], 10, -30611744),
                s = h(s, o, i, n, t[g + 6], 15, -1560198380),
                n = h(n, s, o, i, t[g + 13], 21, 1309151649),
                i = h(i, n, s, o, t[g + 4], 6, -145523070),
                o = h(o, i, n, s, t[g + 11], 10, -1120210379),
                s = h(s, o, i, n, t[g + 2], 15, 718787259),
                n = h(n, s, o, i, t[g + 9], 21, -343485551),
                i = l(i, d),
                n = l(n, u),
                s = l(s, p),
                o = l(o, f)
            }
            return Array(i, n, s, o)
        }
        function o(t, e, i, n, s, o) {
            return l(g(l(l(e, t), l(n, o)), s), i)
        }
        function a(t, e, i, n, s, a, r) {
            return o(e & i | ~e & n, t, e, s, a, r)
        }
        function r(t, e, i, n, s, a, r) {
            return o(e & n | i & ~n, t, e, s, a, r)
        }
        function c(t, e, i, n, s, a, r) {
            return o(e ^ i ^ n, t, e, s, a, r)
        }
        function h(t, e, i, n, s, a, r) {
            return o(i ^ (e | ~n), t, e, s, a, r)
        }
        function l(t, e) {
            var i = (65535 & t) + (65535 & e),
            n = (t >> 16) + (e >> 16) + (i >> 16);
            return n << 16 | 65535 & i
        }
        function g(t, e) {
            return t << e | t >>> 32 - e
        }
        function d(t) {
            for (var e = Array(), i = (1 << f) - 1, n = 0; n < t.length * f; n += f) e[n >> 5] |= (t.charCodeAt(n / f) & i) << n % 32;
            return e
        }
        function u(t) {
            for (var e = p ? "0123456789ABCDEF": "0123456789abcdef", i = "", n = 0; n < 4 * t.length; n++) i += e.charAt(t[n >> 2] >> n % 4 * 8 + 4 & 15) + e.charAt(t[n >> 2] >> n % 4 * 8 & 15);
            return i
        }
        cc._RFpush(e, "4e4c7+/cOtL1ZdHaE4yoHu/", "md5");
        var p = 0,
        f = 8;
        window.util.md5 = function() {
            var t = {};
            return t.hex_md5 = n,
            t
        },
        cc._RFpop()
    },
    {}],
    message: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "f194eBkdUdJ8LU88M3abY/f", "message"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                buttonFrame: [cc.SpriteFrame],
                signInLabel: cc.Node,
                highlightWindow: cc.Node
            },
            onLoad: function() {
                cc.game.addPersistRootNode(this.node),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.lang = kf.require("util.lang"),
                this.dictLogic = kf.require("logic.dict"),
                this.messageLabel = this.node.getChildByName("messageLabel").getComponent(cc.RichText),
                this.title = this.node.getChildByName("title").getComponent(cc.Label),
                this.message1 = this.node.getChildByName("message1").getComponent(cc.RichText),
                this.message2 = this.node.getChildByName("message2").getComponent(cc.RichText),
                this.editBox = this.node.getChildByName("editBox").getComponent(cc.EditBox),
                this.registerMsg(),
                this.callback1 = function() {},
                this.callback2 = function() {},
                this.callback3 = function() {},
                this.callback4 = function() {};
                var t = (function(t) {
                    "function" == typeof t && t()
                }.bind(this), this.node.getChildByName("button1"));
                t.on("touchend",
                function(t) {
                    this.closePopUp(),
                    this.callback1(),
                    this.callback1 = function() {}
                }.bind(this));
                var e = this.node.getChildByName("button2");
                e.on("touchend",
                function(t) {
                    this.closePopUp(),
                    this.callback2(),
                    this.callback2 = function() {}
                }.bind(this));
                var i = this.node.getChildByName("button3");
                i.on("touchend",
                function(t) {
                    this.closePopUp(),
                    this.callback3(),
                    this.callback3 = function() {}
                }.bind(this));
                var n = this.node.getChildByName("button4");
                n.on("touchend",
                function(t) {
                    this.closePopUp(),
                    this.callback4(),
                    this.callback4 = function() {}
                }.bind(this)),
                this.node.active = !1
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerMsg: function() {
                this.registerHandler = [["showMessage", this.show.bind(this)], ["showOkMessage", this.showOkMessage.bind(this)], ["closeMessage", this.closePopUp.bind(this)], ["showSignInMessage", this.showSignInMessage.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            show: function(t) {
                if (t && !this.node.active) {
                    this.clientEvent.dispatchEvent("showWaiting", !1),
                    this.node.active = !0,
                    this.signInLabel.active = !1,
                    t.title ? (this.messageLabel.node.active = !0, this.messageLabel.string = t.title) : this.title.node.active = !1,
                    t.message ? (this.messageLabel.node.active = !0, this.messageLabel.string = t.message) : this.messageLabel.node.active = !1,
                    t.message1 ? (this.message1.node.active = !0, this.message1.string = t.message1) : this.message1.node.active = !1,
                    t.message2 ? (this.message2.node.active = !0, this.message2.string = t.message2) : this.message2.node.active = !1,
                    t.showHighlight ? this.highlightWindow.active = t.showHighlight: this.highlightWindow.active = !1,
                    t.editBox ? (this.editBox.node.active = !0, this.editBoxString = t.editBox, this.editBox.string = this.editBoxString) : this.editBox.node.active = !1;
                    for (var e = 1; e <= 4; e++) {
                        var i = this.node.getChildByName("button" + e),
                        n = t["button" + e];
                        n ? (i.active = !0, i.getComponent(cc.Sprite).spriteFrame = this.buttonFrame[n.frame || 0], i.getChildByName("label").getComponent(cc.Label).string = n.name, this["callback" + e] = n.callback) : i.active = !1
                    }
                }
            },
            showOkMessage: function(t, e) {
                if (t && !this.node.active) {
                    this.clientEvent.dispatchEvent("showWaiting", !1),
                    this.node.active = !0,
                    this.messageLabel.node.active = !0,
                    this.title.node.active = !1,
                    this.message1.node.active = !1,
                    this.message2.node.active = !1,
                    this.signInLabel.active = !1,
                    this.highlightWindow.active = !1,
                    this.editBox.node.active = !1,
                    e ? this.messageLabel.string = this.dictLogic.getLanguage(t)[1] : this.messageLabel.string = this.lang.get(t),
                    this.node.getChildByName("button1").active = !1,
                    this.node.getChildByName("button3").active = !1;
                    var i = this.node.getChildByName("button2");
                    i.active = !0,
                    i.getComponent(cc.Sprite).spriteFrame = this.buttonFrame[0],
                    i.getChildByName("label").getComponent(cc.Label).string = kf.require("util.lang").get("MBOK")
                }
            },
            showSignInMessage: function(t) {
                if (t && !this.node.active) {
                    this.clientEvent.dispatchEvent("showWaiting", !1),
                    this.node.active = !0,
                    this.messageLabel.node.active = !1,
                    this.title.node.active = !1,
                    this.message1.node.active = !1,
                    this.message2.node.active = !1,
                    this.signInLabel.active = !0,
                    this.highlightWindow.active = !0,
                    this.node.getChildByName("button1").active = !1,
                    this.node.getChildByName("button3").active = !1;
                    var e = this.node.getChildByName("button2");
                    e.active = !0;
                    for (var i = 1; i <= 3; i++) {
                        var n = t["reward" + i];
                        n && 0 !== n && (this.signInLabel.children[i - 1].getChildByName("coinNum").active = !0, this.signInLabel.children[i - 1].getChildByName("coinNum").getComponent(cc.Label).string = n, this.signInLabel.children[i - 1].getChildByName("gold2").active = !0)
                    }
                }
            },
            closePopUp: function() {
                this.node.active = !1
            },
            editCallback: function() {
                this.editBox.string = this.editBoxString
            }
        }),
        cc._RFpop()
    },
    {}],
    money: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "ba7200qBU5IsIYjjzF3WB/p", "money"),
        cc.Class({
            "extends": cc.Component,
            properties: {},
            onLoad: function() {
                this.anim = this.node.getComponent(cc.Animation),
                this.loginLogic = kf.require("logic.login"),
                this.roomLogic = kf.require("logic.room"),
                this.dictLogic = kf.require("logic.dict")
            },
            init: function(t) {
                var e = this.roomLogic.getSeatIdByUin(t.coinData.uin),
                i = t.score;
                this.node.getComponent(cc.Label).string = i,
                1 === e || 2 === e ? this.anim.play("moneyUp") : 3 !== e && 4 !== e || this.anim.play("moneyDown")
            },
            onAnimCompleted: function(t) {
                this.anim.stop(),
                kf.require("logic.room").putInPool(this.node.parent.name, this.node.parent)
            }
        }),
        cc._RFpop()
    },
    {}],
    monthDayItem: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "d44be5zlv9AI7IeYnOcfjwm", "monthDayItem"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                notSignIn: cc.Node,
                signInSpr: cc.Node,
                day: cc.Label
            },
            onLoad: function() {},
            init: function(t) {
                this.day.string = t.day,
                this.notSignIn.active = t.isThisMonth,
                this.signInSpr.active = t.isSignIn
            }
        }),
        cc._RFpop()
    },
    {}],
    net: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "60cbbzHakNJCp/sLdtZWNpp", "net"),
        cc.Class({
            "extends": cc.Component,
            properties: {},
            onLoad: function() {
                this.loginLogic = kf.require("logic.login"),
                this.roomLogic = kf.require("logic.room"),
                this.collider = this.node.getComponent(cc.Collider),
                this.anim = this.getComponent(cc.Animation),
                this.configuration = kf.require("util.configuration"),
                this.persistNode = cc.find("persistNode").getComponent("persistNode")
            },
            init: function(t) {
                this.id = t.id,
                this.uin = t.uin,
                this.bulletOrder = t.bulletOrder,
                this.collider.enabled = !0,
                this.anim.play(this.node.name)
            },
            onAnimCompleted: function(t) {
                this.anim.stop(this.node.name),
                this.scheduleOnce(function() {
                    this.node.stopAllActions(),
                    this.roomLogic.putInPool("Net", this.node)
                },
                0)
            },
            onCollisionEnter: function(t, e) {
                this.collider.enabled && (this.collider.enabled = !1, this.loginLogic.isPlayer(this.uin) && setTimeout(function() {
                    this.roomLogic.hitFishRequest(this.bulletOrder)
                }.bind(this), 0))
            }
        }),
        cc._RFpop()
    },
    {}],
    network: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "e75f78pWn1BxbTGotMuwWOC", "network"),
        window.util.network = function() {
            var t = {};
            t = {
                unconnected: 1,
                connected: 2,
                lost_connection: 3,
                error: 4
            };
            var e = null,
            i = !1,
            n = {},
            s = kf.require("basic.clientEvent");
            return n.init = function() {
                var t = kf.require("basic.eventListener");
                this.protocol = kf.require("util.byteProtocol"),
                this.socket = kf.require("util.socket"),
                this.event_listener = t.create(),
                this.clear()
            },
            n.clear = function() {
                this.status = t.unconnected,
                this.session = 1,
                this.internal_session = 1,
                this.callbackObjs = {}
            },
            n.connect = function(t, n, s) {
                if (!i) return this.isConnected() ? void(s && s()) : void setTimeout(function() {
                    try {
                        i = !0,
                        this.socket.connect(t, n, this.msgCallBack.bind(this)),
                        e = s
                    } catch(o) {}
                }.bind(this), 0)
            },
            n.msgCallBack = function(n, o) {
                switch (i = !1, n) {
                case this.socket.eventType.onopen:
                    this.status = t.connected,
                    e && e();
                    break;
                case this.socket.eventType.onclose:
                    if (this.status === t.connected) return this.status = t.lost_connection,
                    void s.dispatchEvent("networkConnect", "networkClose");
                    this.disconnect();
                    break;
                case this.socket.eventType.onerror:
                    this.status === t.connected ? this.status = t.lost_connection: (this.status = t.error, s.dispatchEvent("networkConnect", "networkError"));
                    break;
                case this.socket.eventType.onmessage:
                    var a = o.data,
                    r = this.protocol.decode(a);
                    if (!r) {
                        console.log("decode exception");
                        break
                    }
                    var c = r[0],
                    h = r[1];
                    this.session = this.internal_session,
                    this.processCallback(c, h),
                    this.event_listener.dispatch(c, h)
                }
            },
            n.isConnected = function() {
                return this.status === t.connected
            },
            n.disconnect = function(e) {
                this.hideWaitPanle(),
                this.socket && e && (this.status = t.unconnected, this.socket.close()),
                this.clear()
            },
            n.send = function(t, e, i) {
                if (this.isConnected()) {
                    var n = this.protocol.encode(t, e),
                    s = this.socket.send(n);
                    return s && "closed" === s && this.disconnect(),
                    s
                }
            },
            n.registerEvent = function(t, e) {
                this.event_listener.register(t, e)
            },
            n.dispatch = function(t, e) {
                this.event_listener.dispatch(t, e)
            },
            n.hasLostConnection = function() {
                return this.status === t.lost_connection
            },
            n.resetLostConnection = function() {
                this.status = t.unconnected
            },
            n.showWaitPanle = function() {},
            n.hideWaitPanle = function() {},
            n.cacheCallback = function(t, e) {
                "function" == typeof e && (this.callbackObjs[t] = e)
            },
            n.processCallback = function(t, e) {
                return !! this.callbackObjs[t] && (this.callbackObjs[t](e), delete this.callbackObjs[t], !0)
            },
            n.resetSession = function() {
                this.session = this.internal_session
            },
            n
        },
        cc._RFpop()
    },
    {}],
    order: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "4afd2yDRYdODrBwxz6lQI7Z", "order"),
        cc.Class({
            "extends": cc.Component,
            properties: {},
            onLoad: function() {},
            init: function(t) {
                this.node.getChildByName("goodsName").getComponent(cc.Label).string = t.itemName,
                this.node.getChildByName("changeTime").getComponent(cc.Label).string = t.orderTime,
                this.node.getChildByName("state").getComponent(cc.Label).string = t.status,
                this.node.getChildByName("orderNumber").getComponent(cc.Label).string = t.orderId
            }
        }),
        cc._RFpop()
    },
    {}],
    pay: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "85c27soSuNMprZxusJB1ybv", "pay"),
        cc.Class({
            "extends": cc.Component,
            properties: {},
            onLoad: function() {
                this.webview = cc.find("WebView", this.node).getComponent(cc.WebView)
            },
            init: function(t) {
                this.webview.url = t
            },
            closePopUp: function() {
                this.node.runAction(cc.removeSelf(!0))
            },
            onWebFinishLoad: function(t, e) {}
        }),
        cc._RFpop()
    },
    {}],
    persistNode: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "30125QxDRpLA6Qy8naO903X", "persistNode"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                gameBgAudio: cc.AudioClip,
                buttonAudio: cc.AudioClip,
                changeBarrel: cc.AudioClip,
                fireAudio: cc.AudioClip,
                netAudio: cc.AudioClip,
                hitAudio: cc.AudioClip,
                coinAudio: cc.AudioClip,
                baisha1Audio: cc.AudioClip,
                baisha2Audio: cc.AudioClip,
                bianfu1Audio: cc.AudioClip,
                bianfu2Audio: cc.AudioClip,
                denglong1Audio: cc.AudioClip,
                denglong2Audio: cc.AudioClip,
                jinqiang1Audio: cc.AudioClip,
                jinqiang2Audio: cc.AudioClip,
                jinsha1Audio: cc.AudioClip,
                jinsha2Audio: cc.AudioClip,
                wugui1Audio: cc.AudioClip,
                wugui2Audio: cc.AudioClip,
                generalPrefab: cc.Prefab,
                messagePrefab: cc.Prefab,
                waitingPrefab: cc.Prefab
            },
            onLoad: function() {
                cc.game.addPersistRootNode(this.node),
                this.preloadLogic = kf.require("logic.preload");
                var t = cc.director.getCollisionManager();
                t.enabled = !0,
                this.timeLogic = kf.require("logic.time"),
                this.bgVolume = kf.require("util.configuration").getConfigData("bgVolume") || 1,
                this.effecVolume = kf.require("util.configuration").getConfigData("effectVolume") || 1,
                this.bgVolume < .02 && (this.bgVolume = .001),
                this.bgAudioID = cc.audioEngine.play(this.gameBgAudio, !0, this.bgVolume);
                var e = cc.director.getScene(),
                i = cc.instantiate(this.generalPrefab);
                e.addChild(i),
                i = cc.instantiate(this.messagePrefab),
                e.addChild(i),
                i = cc.instantiate(this.waitingPrefab),
                e.addChild(i)
            },
            updateVolume: function(t, e) {
                this.bgVolume = t || this.bgVolume || 1,
                this.effecVolume = e || this.effecVolume || 1,
                t < .02 ? cc.audioEngine.pauseAll() : cc.audioEngine.resumeAll(),
                cc.audioEngine.setVolume(this.bgAudioID, this.bgVolume)
            },
            playAudio: function(t) {
                this[t] && (this.effecVolume < .02 || cc.audioEngine.play(this[t], !1, this.effecVolume))
            },
            update: function(t) {
                this.timeLogic.kfUpdate(t)
            }
        }),
        cc._RFpop()
    },
    {}],
    popUp: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "118eeHtT5pIEaKoAQyH7HLh", "popUp"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                mainMail: cc.Node
            },
            onLoad: function() {
                this.canvas = cc.find("Canvas"),
                this.clientEvent = kf.require("basic.clientEvent")
            },
            closePopUp: function() {
                var t = this.node.getComponent(cc.Animation).play();
                t.wrapMode = cc.WrapMode.Reverse,
                this.clientEvent.dispatchEvent("hallPopUp"),
                this.scheduleOnce(function() {
                    this.node.active = !1
                },
                .5),
                null !== this.mainMail && (this.mainMail.active = !1)
            }
        }),
        cc._RFpop()
    },
    {}],
    preloadLogic: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "1cba6dKiBhFo45UvjfwnpvU", "preloadLogic"),
        window.logic.preload = function() {
            var t = {},
            e = kf.require("basic.clientEvent");
            return t.init = function() {
                this.byteProtocol = !1,
                this.dict = !1,
                this.room = !1,
                this.fishScene = !1,
                this.clientConfig = !!window.clientConfig,
                e.registerEvent("preloadFinish",
                function(t) {
                    this[t] = !0,
                    (this.canWeLogin() || this.canWeFishing()) && e.dispatchEvent("showWaiting", !1)
                }.bind(this)),
                window.g_xxtea = null,
                1 === window.clientConfig.encrypt && (window.g_xxtea = kf.require("util.xxtea"), window.g_xxtea.init(window.clientConfig.cookieName)),
                kf.require("basic.eventListener"),
                kf.require("basic.clienEvent"),
                kf.require("util.byteProtocol"),
                kf.require("util.configurtion"),
                kf.require("util.lang"),
                kf.require("util.socket"),
                kf.require("util.network"),
                kf.require("logic.time"),
                kf.require("logic.dict"),
                kf.require("logic.room"),
                kf.require("logic.login"),
                kf.require("logic.hall"),
                kf.require("logic.bag"),
                kf.require("logic.task"),
                cc.director.preloadScene("fishScene",
                function() {
                    kf.require("basic.clientEvent").dispatchEvent("preloadFinish", "fishScene")
                }.bind(this))
            },
            t.canWeLogin = function() {
                return this.byteProtocol && this.dict && this.clientConfig
            },
            t.canWeFishing = function() {
                return t.canWeLogin && this.room && this.fishScene
            },
            t
        },
        cc._RFpop()
    },
    {}],
    prizeItem: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "71474F1HWJM159nlT7a3frS", "prizeItem"),
        cc.Class({
            "extends": cc.Component,
            properties: {},
            onLoad: function() {
                this.bagLogic = kf.require("logic.bag"),
                this.dictLogic = kf.require("logic.dict"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.protocol = kf.require("util.byteProtocol"),
                this.prizeButtonRegister()
            },
            init: function(t) {
                this.copydata = t,
                this.node.getChildByName("label").getComponent(cc.Label).string = t.itemName,
                this.node.getChildByName("basic_03").getChildByName("label").getComponent(cc.Label).string = t.Cost;
                var e = t.myPngUrl;
                cc.loader.loadRes(e,
                function(t, e) {
                    var i = new cc.SpriteFrame;
                    i.initWithTexture(e),
                    this.node.getChildByName("itemImage").getComponent(cc.Sprite).spriteFrame = i
                }.bind(this))
            },
            prizeButtonRegister: function() {
                this.node.on("touchend",
                function(t) {
                    this.clientEvent.dispatchEvent("showItemDesc", this.copydata)
                },
                this)
            }
        }),
        cc._RFpop()
    },
    {}],
    prize: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "85ea0wCnKdNuZ0wiGeqUn6N", "prize"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                hotItem: cc.Prefab,
                ordinaryItem: cc.Prefab,
                hotLayout: cc.Node,
                ordinaryLayout: cc.Node,
                hotNode: cc.Node,
                ordinaryNode: cc.Node,
                hotButtonDown: cc.Node,
                ordinaryButtonDown: cc.Node,
                convert: cc.Node,
                itemName: cc.Label,
                itemDescInfo: cc.RichText,
                coinDescInfo: cc.Label,
                prizeNeedNum: cc.Label,
                prizeHadNum: cc.Label,
                itemImage: cc.Sprite,
                conventContent1: cc.Node,
                conventContent4: cc.Node,
                slider: cc.Slider,
                progressBar: cc.ProgressBar,
                progressNum: cc.Label
            },
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent"),
                this.protocol = kf.require("util.byteProtocol"),
                this.bagLogic = kf.require("logic.bag"),
                this.loginLogic = kf.require("logic.login"),
                this.dictLogic = kf.require("logic.dict"),
                this.lang = kf.require("util.lang"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.canvas = cc.find("Canvas"),
                this.ticketNum = this.protocol.getFieldValue("LoginRespone", "ticket"),
                this.itemNum = 1,
                this.progressBaseNum = 0,
                this.slider.progress = 0,
                this.registerEvent(),
                this.hotButtonDown.active = !0
            },
            onDestroy: function() {
                this.unregisterEvent(),
                this.bagLogic.cleanPrizeArr()
            },
            registerEvent: function() {
                this.registerHandler = [["updateGiftShop", this.initItem.bind(this)], ["showItemDesc", this.showItemDesc.bind(this)], ["buyObjectItem", this.buyObjectItem.bind(this)], ["ticketExchangeSuccess", this.ticketExchangeSuccess.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            init: function() {
                this.hotClick(),
                this.bagLogic.initPrizeChangeInfo(),
                this.initItem()
            },
            showItemDesc: function(t) {
                this.convert.active = !0;
                var e = (this.protocol.getFieldValue("QueryItemDescRespone", "itemTypeId"), t.itemName);
                this.itemNeedNum = t.Cost,
                this.desciption = t.desc,
                this.ticketNum = this.protocol.getFieldValue("LoginRespone", "ticket"),
                this.itemName.string = e,
                this.prizeNeedNum.string = this.itemNeedNum,
                this.prizeHadNum.string = this.ticketNum,
                this.prizeId = t.ID,
                this.bagLogic.judgeItemName(e) ? (this.conventContent4.active = !1, e === this.dictLogic.getLanguage("140127")[1] ? this.desciptionStringArr = this.desciption.split("5") : e === this.dictLogic.getLanguage("140128")[1] && (this.desciptionStringArr = this.desciption.split("11")), this.setDisciptionLabel(), this.progressBaseNum = this.bagLogic.countCoinBaseNum(this.ticketNum, this.itemNeedNum), 1 !== this.progressBaseNum ? this.progressNum.node.color = cc.Color.BLACK: this.progressNum.node.color = cc.Color.RED) : (this.conventContent4.active = !0, this.itemDescInfo.string = this.desciption);
                var i = t.myPngUrl;
                cc.loader.loadRes(i,
                function(t, e) {
                    var i = new cc.SpriteFrame;
                    i.initWithTexture(e),
                    this.itemImage.getComponent(cc.Sprite).spriteFrame = i
                }.bind(this))
            },
            buyObjectItem: function() {
                var t = this,
                e = {
                    message: this.dictLogic.getLanguage("130375")[1],
                    button2: {
                        name: this.lang.get("MBOK"),
                        frame: 1,
                        callback: function() {
                            t.prizeHadNum.string = t.protocol.getFieldValue("LoginRespone", "ticket")
                        }
                    }
                };
                this.clientEvent.dispatchEvent("showMessage", e),
                this.convert.active = !1
            },
            ticketExchangeSuccess: function() {
                var t = this,
                e = {
                    message: this.dictLogic.getLanguage("150239")[1],
                    button2: {
                        name: this.lang.get("MBOK"),
                        frame: 1,
                        callback: function() {
                            t.showItemDesc()
                        }
                    }
                };
                this.clientEvent.dispatchEvent("showMessage", e)
            },
            initItem: function() {
                this.deletePrizeItem();
                for (var t = this.hotLayout.getContentSize().width, e = 0; e < this.bagLogic.ordinaryItemInfo.length; e++) {
                    var i = cc.instantiate(this.ordinaryItem);
                    this.ordinaryLayout.addChild(i),
                    i.getComponent("prizeItem").init(this.bagLogic.ordinaryItemInfo[e])
                }
                var n = this.bagLogic.getPrizeRow(this.bagLogic.ordinaryItemInfo.length);
                this.ordinaryLayout.setContentSize(t, n * this.ordinaryItem.data.getContentSize().height + 100),
                this.ordinaryLayout.parent.setContentSize(t, n * this.ordinaryItem.data.getContentSize().height + 100);
                for (var s = 0; s < this.bagLogic.hotItemInfo.length; s++) {
                    var o = cc.instantiate(this.hotItem);
                    this.hotLayout.addChild(o),
                    o.getComponent("prizeItem").init(this.bagLogic.hotItemInfo[s])
                }
                n = this.bagLogic.getPrizeRow(this.bagLogic.hotItemInfo.length),
                this.hotLayout.setContentSize(t, n * this.hotItem.data.getContentSize().height + 100),
                this.hotLayout.parent.setContentSize(t, n * this.hotItem.data.getContentSize().height + 100)
            },
            deletePrizeItem: function() {
                this.ordinaryLayout.removeAllChildren(),
                this.hotLayout.removeAllChildren()
            },
            setDisciptionLabel: function() {
                var t = this.setDisciptionNumber();
                this.desciption = this.desciptionStringArr.join(t),
                this.coinDescInfo.string = this.desciption
            },
            setDisciptionNumber: function() {
                if (this.itemName.string === this.dictLogic.getLanguage("140127")[1]) var t = 5 * this.itemNum;
                else if (this.itemName.string === this.dictLogic.getLanguage("140128")[1]) var t = 11 * this.itemNum;
                return t
            },
            closePopUp: function() {
                this.bagLogic.cleanPrizeArr(),
                this.buttonManager.close(this.node.parent, this.node.name, !0)
            },
            hotClick: function() {
                this.hotNode.active = !0,
                this.ordinaryNode.active = !1,
                this.hotButtonDown.active = !0,
                this.ordinaryButtonDown.active = !1
            },
            ordinaryClick: function() {
                this.hotNode.active = !1,
                this.ordinaryNode.active = !0,
                this.hotButtonDown.active = !1,
                this.ordinaryButtonDown.active = !0
            },
            backClick: function() {
                this.convert.active = !1,
                this.conventContent4.active || (this.slider.progress = 0, this.sliderClick())
            },
            prizeClick: function() {
                this.ticketNum < this.itemNeedNum ? this.clientEvent.dispatchEvent("showOkMessage", "150011", !0) : this.bagLogic.buyObjectItemRequest(this.prizeId)
            },
            prizeMoneyClick: function() {
                this.ticketNum < this.itemNeedNum * this.itemNum ? this.clientEvent.dispatchEvent("showOkMessage", "150011", !0) : this.bagLogic.ticketExchangeRequest(this.protocol.getFieldValue("QueryItemDescRespone", "itemTypeId"), this.itemNum)
            },
            sliderClick: function() {
                this.progressBar.progress = this.slider.progress,
                this.itemNum = Math.ceil(this.progressBaseNum * this.slider.progress),
                this.itemNum < 1 && (this.itemNum = 1),
                this.progressNum.string = this.itemNum,
                this.setDisciptionLabel()
            },
            addButtonClick: function() {
                if (this.progressBaseNum >= 2) var t = this.progressBaseNum - 1;
                else var t = this.progressBaseNum;
                this.slider.progress += 1 / t,
                this.slider.progress > 1 && (this.slider.progress = 1),
                this.sliderClick()
            },
            subButtonClick: function() {
                this.slider.progress -= 1 / this.progressBaseNum,
                this.slider.progress < 0 && (this.slider.progress = 0),
                this.sliderClick()
            }
        }),
        cc._RFpop()
    },
    {}],
    protobufProtocol: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "3ac73mfSD9Nw6Go4eGIPBgz", "protobufProtocol");
        t("long");
        window.util.byteProtocol = function() {
            var t = kf.require("basic.clientEvent"),
            e = {},
            i = {
                init: function() {
                    this.c2gs = null,
                    this.gs2c = null,
                    this.cache = {},
                    cc.loader.loadResDir("protocol",
                    function(e, n) {
                        i.registerProto(n),
                        t.dispatchEvent("preloadFinish", "byteProtocol")
                    })
                },
                registerProto: function(t) {
                    for (var i, n = window.dcodeIO.ProtoBuf.newBuilder(), s = 0; s < t.length; s++) {
                        var o = t[s];
                        o && (t[s].indexOf("message C2GS") === -1 ? window.dcodeIO.ProtoBuf.loadProto(o, n, s + "") : i = o)
                    }
                    window.dcodeIO.ProtoBuf.loadProto(i, n, s + 1 + ""),
                    e = n.build(),
                    this.c2gs = n.lookup("C2GS"),
                    this.gs2c = n.lookup("GS2C")
                },
                getFieldValue: function(t, e) {
                    var i = void 0,
                    n = this.cache[t];
                    return void 0 === n ? i: this.getFieldValueEx(n, e)
                },
                getFieldValueEx: function(t, e) {
                    return t[e]
                },
                getFieldValueInObj: function(t, e) {
                    var i = void 0;
                    for (var n in t) if (n === e) {
                        i = t[n];
                        break
                    }
                    return i
                },
                setFieldValue: function(t, e, i) {
                    var n = this.cache[t];
                    return void 0 === n ? i: void this.setFieldValueEx(n, e, i)
                },
                setFieldValueEx: function(t, e, i) {
                    t[e] = i
                },
                decode: function(t) {
                    var i, n, s = e.GS2C.decode(t);
                    for (var o in s) if (n = s[o], null != n) {
                        i = o,
                        this.cache[i] = n;
                        break
                    }
                    return [i, this.cache[i]]
                },
                encode: function(t, i) {
                    var n = {};
                    n.sequence = this.getIdByName(t),
                    n[t] = {};
                    var s = this.getStructFields(n.sequence),
                    o = 0;
                    for (var a in s) {
                        if (i[o] instanceof Array) {
                            var r = this.getStructFieldsEx(n.sequence, o + 1);
                            n[t][a] = this.buildStruct(i[o], r)
                        } else n[t][a] = i[o];
                        o++
                    }
                    var c = new e.C2GS(n),
                    h = c.encode(),
                    l = h.toArrayBuffer();
                    return l
                },
                buildStruct: function(t, e) {
                    var i = [];
                    for (var n in t) {
                        var s = {},
                        o = 0;
                        for (var a in e) s[a] = t[n],
                        o++;
                        i.push(s)
                    }
                    return i
                },
                getIdByName: function(t) {
                    if (!this.c2gs) return null;
                    var e = this.c2gs.getChild(t);
                    return e ? e.id: void 0
                },
                getNameById: function(t) {
                    if (!this.c2gs) return null;
                    var e = this.c2gs.getChild(t);
                    return e ? e.name: void 0
                },
                getStructFields: function(t) {
                    return this.c2gs ? this.c2gs.getChild(t).element.resolvedType._fieldsByName: null
                },
                getStructFieldsEx: function(t, e) {
                    if (!this.c2gs) return null;
                    var i = this.c2gs.getChild(t);
                    return i = i.resolvedType.getChild(e),
                    i.element.resolvedType._fieldsByName
                }
            };
            return i
        },
        cc._RFpop()
    },
    {
        "long": "long"
    }],
    protocol: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "1b9a9Evrf5DQI0YoWl/WmTw", "protocol"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                pagesLabel: cc.Label,
                arrPages: [cc.Node]
            },
            onLoad: function() {
                this.pageNumber = 1,
                this.clientEvent = kf.require("basic.clientEvent"),
                this.hallLogic = kf.require("logic.hall")
            },
            init: function() {},
            closePopUp: function() {
                kf.require("util.buttonManager").close(this.node.parent, this.node.name, !1)
            },
            btnLeft: function() {
                1 === this.pageNumber ? this.pageNumber = 1 : this.pageNumber--,
                this.pagesLabel.string = this.pageNumber,
                this.arrPages[this.pageNumber].active = !1,
                this.arrPages[this.pageNumber - 1].active = !0
            },
            btnRight: function() {
                20 === this.pageNumber ? this.pageNumber = 20 : this.pageNumber++,
                this.pagesLabel.string = this.pageNumber,
                this.arrPages[this.pageNumber - 2].active = !1,
                this.arrPages[this.pageNumber - 1].active = !0
            }
        }),
        cc._RFpop()
    },
    {}],
    rechargeItemContent: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "d094eIX7o1Nc6b4JEGPBHiY", "rechargeItemContent"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                rechargeItem: cc.Prefab
            },
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent"),
                this.hallLogic = kf.require("logic.hall"),
                this.canvas = cc.find("Canvas/hallScene/popup/activity"),
                this.noteData = [],
                this.complete_valueData = [],
                this.target_valueData = [],
                this.statusData = [],
                this.data_idData = [];
                for (var t = 0; t < this.hallLogic.acti_id.length; t++) 1002 === this.hallLogic.acti_id[t] && (this.noteData.push(this.hallLogic.note[t]), this.complete_valueData.push(this.hallLogic.complete_value[t]), this.target_valueData.push(this.hallLogic.target_value[t]), this.statusData.push(this.hallLogic.status[t]), this.data_idData.push(this.hallLogic.data_id[t]));
                this.contentPrefab()
            },
            start: function() {
                this.scheduleOnce(function() {
                    this.activityContentList()
                },
                .3)
            },
            contentPrefab: function() {
                for (var t = 0; t < this.noteData.length; t++) {
                    var e = cc.instantiate(this.rechargeItem);
                    this.node.addChild(e)
                }
                this.contentChild = this.node.children
            },
            activityContentList: function() {
                for (var t = 0; t < this.noteData.length; t++) {
                    var e = this.noteData[t],
                    i = this.complete_valueData[t],
                    n = this.target_valueData[t],
                    s = this.statusData[t],
                    o = this.data_idData[t],
                    a = this.canvas.getComponent("activity").rewardArr[0][t];
                    this.contentChild[t].getComponent("rechargeItem").rechargeInit(e, i, n, a, s, o)
                }
            }
        }),
        cc._RFpop()
    },
    {}],
    rechargeItem: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "0869fZHcTlNjoYsoRds6Vye", "rechargeItem"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                note: cc.Label,
                target_value: cc.Label,
                money: cc.Label,
                novicePacks: cc.Prefab,
                shop: cc.Prefab,
                btnLabel: cc.Label,
                btnNode: cc.Node,
                yiLingQu: cc.Node
            },
            onLoad: function() {
                this.hallLogic = kf.require("logic.hall"),
                this.popUp = cc.find("Canvas/hallScene/popup"),
                this.Image_success = cc.find("Canvas/hallScene/popup/activity/Image_success")
            },
            rechargeInit: function(t, e, i, n, s, o) {
                switch (this.note.string = t, this.target_value.string = e + "/" + i.replace("0:", ""), this.money.string = n / 1e4 + "万", s) {
                case 1:
                    this.btnLabel.string = "可领取";
                    break;
                case 2:
                    this.btnLabel.string = "去参加";
                    break;
                case 3:
                    this.btnNode.active = !1,
                    this.yiLingQu.active = !0
                }
                this.dataID = o;
                var a = this.node.getSiblingIndex();
                3 === s && this.node.setSiblingIndex(a + 10)
            },
            btnGo: function() {
                if ("可领取" === this.btnLabel.string) {
                    this.hallLogic.getActivityReward(1002, this.dataID),
                    this.btnNode.active = !1,
                    this.yiLingQu.active = !0,
                    this.Image_success.active = !0,
                    this.Image_success.getChildByName("jinbi").getChildByName("number").getComponent(cc.Label).string = this.money.string;
                    var t = this.node.getSiblingIndex();
                    this.node.setSiblingIndex(t + 10)
                } else {
                    var e = this.hallLogic.newuser;
                    this.popUp.getChildByName("activity").getComponent("activity").closePopUp(),
                    1 === e ? (by.buttonManager.button(this.popUp, "novicePacks", this.novicePacks), this.scheduleOnce(function() {
                        this.hallLogic.setButtonTouch(!0)
                    },
                    this.hallLogic.turnOnButtonTime)) : (by.buttonManager.button(this.popUp, "shop", this.shop), this.scheduleOnce(function() {
                        this.hallLogic.setButtonTouch(!0)
                    },
                    this.hallLogic.turnOnButtonTime))
                }
            }
        }),
        cc._RFpop()
    },
    {}],
    redPacketItem: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "ef2d92pmMxAIYv4PZJTF6n+", "redPacketItem"),
        cc.Class({
            "extends": cc.Component,
            properties: {},
            onLoad: function() {},
            init: function(t) {
                var e = 1 === t.type ? kf.require("util.lang").get("genRedPacket") : kf.require("util.lang").get("drawRedPacket");
                this.node.getChildByName("set").getComponent(cc.Label).string = e,
                this.editBoxString = t.code,
                this.node.getChildByName("number").getComponent(cc.EditBox).string = t.code;
                var i = t.timestamp;
                i = new Date(1e3 * i).toLocaleDateString(),
                this.node.getChildByName("time").getComponent(cc.Label).string = i
            },
            editCallback: function() {
                this.node.getChildByName("number").getComponent(cc.EditBox).string = this.editBoxString
            }
        }),
        cc._RFpop()
    },
    {}],
    redpacket: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "98220rqw/tOwr4QBHy5/vSP", "redpacket"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                genRedPacketPackOn: cc.Node,
                queryRedPacketInfoPackOn: cc.Node,
                drawRedPacketPackOn: cc.Node,
                genRedPacket: cc.Node,
                queryRedPacketInfo: cc.Node,
                drawRedPacket: cc.Node,
                genRedPacketEdit: cc.EditBox,
                drawRedPacketEdit: cc.EditBox,
                queryInfoNothing: cc.Node,
                queryInfoRecord: cc.Node,
                redPacketItemParentNode: cc.Node,
                redPacketItem: cc.Prefab
            },
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent"),
                this.protocol = kf.require("util.byteProtocol"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.richlabel = kf.require("util.richlabel"),
                this.lang = kf.require("util.lang"),
                this.dictLogic = kf.require("logic.dict"),
                this.taskLogic = kf.require("logic.task"),
                this.hallLogic = kf.require("logic.hall"),
                this.registerEvent()
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerEvent: function() {
                this.registerHandler = [["showRedPacketOrder", this.showRedPacketOrder.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            init: function() {
                this.genRedPacketPackButtonClick()
            },
            showRedPacketOrder: function() {
                var t = this.protocol.getFieldValue("QueryRedPacketInfoResponse", "info");
                if (0 === t.length) return this.queryInfoNothing.active = !0,
                void(this.queryInfoRecord.active = !1);
                this.queryInfoNothing.active = !1,
                this.queryInfoRecord.active = !0;
                for (var e = 0; e < t.length; e++) for (var i = 0; i < t.length - 1 - e; i++) if (t[i].timestamp < t[i + 1].timestamp) {
                    var n = t[i + 1];
                    t[i + 1] = t[i],
                    t[i] = n
                }
                for (var e = 0; e < t.length; e++) {
                    if (this.redPacketItemParentNode.children[e]) var s = this.redPacketItemParentNode.children[e];
                    else {
                        var s = cc.instantiate(this.redPacketItem);
                        s.parent = this.redPacketItemParentNode
                    }
                    s.getComponent("redPacketItem").init(t[e])
                }
                if (this.redPacketItemParentNode.children.length > t.length) for (var i = t.length; i < this.redPacketItemParentNode.children.length;) this.redPacketItemParentNode.children[i].destroy(),
                this.redPacketItemParentNode.removeChild(this.redPacketItemParentNode.children[i])
            },
            genRedPacketPackButtonClick: function() {
                this.genRedPacketPackOn.active = !0,
                this.queryRedPacketInfoPackOn.active = !1,
                this.drawRedPacketPackOn.active = !1,
                this.genRedPacket.active = !0,
                this.queryRedPacketInfo.active = !1,
                this.drawRedPacket.active = !1
            },
            queryRedPacketInfoPackClick: function() {
                this.genRedPacketPackOn.active = !1,
                this.queryRedPacketInfoPackOn.active = !0,
                this.drawRedPacketPackOn.active = !1,
                this.genRedPacket.active = !1,
                this.queryRedPacketInfo.active = !0,
                this.drawRedPacket.active = !1,
                this.taskLogic.queryRedPacketInfoRequest()
            },
            drawRedPacketPackClick: function() {
                this.genRedPacketPackOn.active = !1,
                this.queryRedPacketInfoPackOn.active = !1,
                this.drawRedPacketPackOn.active = !0,
                this.genRedPacket.active = !1,
                this.queryRedPacketInfo.active = !1,
                this.drawRedPacket.active = !0
            },
            genRedPacketClick: function(t, e) {
                if (e) var i = e + "0000";
                else {
                    var i = this.genRedPacketEdit.string - 0;
                    if (i < 200) return void this.clientEvent.dispatchEvent("showOkMessage", "redPacketMinMoney", !1);
                    if (i > this.protocol.getFieldValue("LoginRespone", "coin")) return void this.clientEvent.dispatchEvent("showOkMessage", "redPacketMaxMoney", !1)
                }
                this.taskLogic.genRedPacketRequest(i - 0)
            },
            drawRedPacketClick: function() {
                var t = this.drawRedPacketEdit.string;
                this.taskLogic.drawRedPacketRequest(t)
            },
            close: function() {
                this.buttonManager.close(this.node.parent, this.node.name, !0)
            }
        }),
        cc._RFpop()
    },
    {}],
    registered: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "0083bZnbgRJeqXcm/ghqpUa", "registered"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                registerAcc: cc.Node,
                registAcc: cc.EditBox,
                registCode: cc.EditBox,
                registPswd: cc.EditBox,
                registPswdOk: cc.EditBox,
                getSmsCodeBtn: cc.Node,
                tick: cc.Node
            },
            onLoad: function() {
                this.loginLogic = kf.require("logic.login"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.protocol = kf.require("util.byteProtocol"),
                this.lang = kf.require("util.lang"),
                this.dictLogic = kf.require("logic.dict"),
                this.editParent = this.node.getChildByName("register").getChildByName("windows_Blue03"),
                this.registerMsg(),
                this.count = 180,
                this.isCount = !1
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerMsg: function() {
                this.registerHandler = [["registerVerifySuccess", this.registerVerifySuccess.bind(this)], ["registerAccSuccess", this.registerAccSuccess.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            registerGetSmsCode: function() {
                this.registPhoneString = this.registAcc.string;
                11 !== this.registPhoneString.length ? this.clientEvent.dispatchEvent("showOkMessage", "130011", !0) : this.loginLogic.registerVerifyRequest(this.registPhoneString);
            },
            registerAccount: function() {
                var t, e = this.registAcc.string,
                i = this.registCode.string,
                n = this.registPswd.string,
                s = this.registPswdOk.string;
                if (this.tick.active) if (0 === e.length) t = "122076";
                else {
                    if (0 === i.length) return void this.clientEvent.dispatchEvent("showOkMessage", "inputVerification", !1);
                    if (0 == n.length) t = "130076";
                    else if (n !== s) t = "130018";
                    else {
                        if (! (n.length < 8)) return void this.loginLogic.registerAcc(e, i, s);
                        t = "130020"
                    }
                } else t = "150001";
                this.clientEvent.dispatchEvent("showOkMessage", t, !0)
            },
            registerVerifySuccess: function() {
                this.node.active === !0 && (this.getSmsCodeBtn.opacity = 180, this.getSmsCodeBtn.getComponent(cc.Button).interactable = !1, this.isCount = !0, this.getSmsCode = this.getSmsCodeBtn.getChildByName("label").getComponent(cc.Label), this.isCount === !1 && (this.getSmsCodeBtn.opacity = 255, this.getSmsCodeBtn.getComponent(cc.Button).interactable = !0, this.getSmsCode.string = "获取验证码"))
            },
            registerAccSuccess: function() {
                var t, e = this.protocol.getFieldValue("protoRegisterResponse", "result"),
                i = this;
                switch (e) {
                case 0:
                    t = this.lang.get("registerSuccess");
                    break;
                case 1:
                    t = this.lang.get("IPisDisable");
                    break;
                case 2:
                    t = this.lang.get("deviceEmpty");
                    break;
                case 3:
                    t = this.lang.get("deviceDisabled");
                    break;
                case 4:
                    t = this.lang.get("protocolNotCompatible");
                    break;
                case 5:
                    t = this.lang.get("systemError");
                    break;
                case 6:
                    t = this.dictLogic.getLanguage("130317")[1];
                    break;
                case 7:
                    t = this.lang.get("hasRegistered")
                }
                var n = {
                    message: t,
                    button2: {
                        name: this.lang.get("MBOK"),
                        frame: 0,
                        callback: function() {
                            i.registerAcc.active = !1,
                            0 === e && this.loginLogic.login(this.registAcc.string, this.registPswdOk.string)
                        }.bind(this)
                    }
                };
                this.clientEvent.dispatchEvent("showMessage", n)
            },
            openRegister: function() {
                kf.require("util.buttonManager").open(this.node.parent, this.node.name, null)
            },
            closeRegister: function() {
                kf.require("util.buttonManager").close(this.node.parent, this.node.name, !1)
            },
            update: function(t) {
                this.isCount && (this.count -= t, this.getSmsCode.string = parseInt(this.count), this.count > 0 || (this.isCount = !1, this.getSmsCodeBtn.opacity = 255, this.getSmsCodeBtn.getComponent(cc.Button).interactable = !0, this.getSmsCodeBtn.getChildByName("label").getComponent(cc.Label).string = "获取验证码"))
            }
        }),
        cc._RFpop()
    },
    {}],
    rewardItem: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "7bbe1CyVUhID5rKktcA+uDt", "rewardItem"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                icon: [cc.SpriteFrame]
            },
            onLoad: function() {
                this.dictLogic = kf.require("logic.dict"),
                this.protocol = kf.require("util.byteProtocol"),
                this.richlabel = kf.require("util.richlabel"),
                this.rankLabel = this.node.getChildByName("rankLabel").getComponent(cc.Label),
                this.iconNode = this.node.getChildByName("Icon_Gold"),
                this.rewardLabel = this.node.getChildByName("rewardbg").getChildByName("rewardLabel").getComponent(cc.Label)
            },
            init: function(t, e) {
                var i = this.protocol.getFieldValueEx(t, "item_sets"),
                n = this.protocol.getFieldValueEx(t, "ticket_num"),
                s = this.protocol.getFieldValueEx(t, "coin_num");
                if (this.iconNode.active = e, "0" !== i && "" !== i) i = i.split(":")[0] - 0,
                this.rewardLabel.string = this.dictLogic.getItemName(i);
                else if (0 !== n) this.iconNode.getComponent(cc.Sprite).spriteFrame = this.icon[1],
                n >= 1e4 ? this.rewardLabel.string = n / 1e4 + this.dictLogic.getLanguage("130056")[1] : this.rewardLabel.string = n;
                else if (0 !== s) if (this.iconNode.getComponent(cc.Sprite).spriteFrame = this.icon[0], s >= 1e4) {
                    if (!e) var o = this.dictLogic.getLanguage("150025")[1] + s / 1e4 + this.dictLogic.getLanguage("130056")[1];
                    this.rewardLabel.string = o
                } else {
                    if (!e) var o = this.dictLogic.getLanguage("150025")[1] + s;
                    this.rewardLabel.string = o
                }
                var a = this.protocol.getFieldValueEx(t, "rankings");
                a = a.split(";");
                var r = this.dictLogic.getLanguage("130097")[1];
                if (a[0] === a[1]) var c = a[0];
                else var c = a[0] + "~" + a[1];
                r = this.richlabel.replaceString(r, c),
                this.rankLabel.string = r
            }
        }),
        cc._RFpop()
    },
    {}],
    richlabel: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "c120d49SPRD8IUV55L6pwg/", "richlabel"),
        window.util.richlabel = function() {
            var t = {},
            e = kf.require("logic.dict"),
            i = kf.require("util.lang");
            return t.init = function() {},
            t.createRichLabelColor = function(t) {
                for (var e = t.split("]"), i = [], n = 0; n < e.length; n++) {
                    for (var s = e[n].split("["), o = 0; o < s.length; o++) if ("-" === s[o]) s[o] = "/color";
                    else if (6 === s[o].length) {
                        var a = new RegExp("[0-9a-fA-F]{6}"),
                        r = a.test(s[o]);
                        if (!r) continue;
                        s[o] = "color=#" + s[o]
                    }
                    var c = s.join("<");
                    i.push(c)
                }
                var h = i.join(">");
                return h
            },
            t.replaceString = function(t, e) {
                var i = [];
                e instanceof Array ? i = e: (e = e.toString(), i.push(e));
                for (var n = t.split("}"), s = [], o = 0; o < n.length; o++) {
                    var a = n[o].split("{");
                    a[1] = i[o];
                    var r = a.join("");
                    s.push(r)
                }
                var c = s.join("");
                return c
            },
            t.getDateString = function(t) {
                for (var i = t.split("-"), n = 1; n < i.length; n++)"0" === i[n][0] && (i[n] = i[n][1]);
                var s = i[1] + e.getLanguage("130123")[1] + i[2] + e.getLanguage("130124")[1];
                return s
            },
            t.getTimeString = function(t) {
                for (var e = t.split(":"), i = [], n = 0; n < e.length - 1; n++) i.push(e[n]);
                var s = i.join(":");
                return s
            },
            t.getGameTimeString = function(t, e) {
                var n = "";
                if (e < 180 && (n = i.get("registrationCountDown")), e < 3600) n = i.get("start");
                else {
                    var s = t.split(" "),
                    o = s[1].split(":"),
                    a = o[2] - 0 + 60 * o[1] + 3600 * o[0];
                    n = this.countTime(a, e) ? i.get("today") : this.countTime(a + 86400, e) ? i.get("tomorrow") : this.countTime(a + 172800, e) ? i.get("afterTomorrow") : this.getDateString(s[0])
                }
                return n
            },
            t.countTime = function(t, e) {
                var i = e - t;
                return i < 0
            },
            t.countDownTime = function(t) {
                var e = [],
                i = Math.floor(t / 60),
                n = t - 60 * i;
                i < 10 && i > 0 ? i = Array(2).join(0) + i: 0 === i && (i = "00"),
                n < 10 && (n = Array(2).join(0) + n),
                e.push(i),
                e.push(n);
                var s = e.join(":");
                return s
            },
            t.changeTimeLabel = function(t, i) {
                var n = t.split("/");
                switch (i) {
                case e.getLanguage("130122")[1]:
                    var i = n[0] + "年";
                    break;
                case e.getLanguage("130123")[1]:
                    var i = n[0] + "年" + n[1] + "月";
                    break;
                case e.getLanguage("130124")[1]:
                    var i = n[0] + "年" + n[1] + "月" + n[2] + "日"
                }
                return i
            },
            t.addDays = function(t, e) {
                for (var i = new Date(t.getYear(), t.getMonth() + 1, 0).getDate(), n = t.getYear() + 1900, s = t.getMonth() + 1, o = t.getDate(), a = 0; a < e; a++) o++,
                o > i && (o = 1, s++, s > 12 && (s = 1, n++));
                return new Date(n, s - 1, o)
            },
            t.smallToLargeArr = function(t, e) {
                for (var i = t,
                n = 0; n < i.length; n++) for (var s = 0; s < i.length - 1 - n; s++) if (i[s][e] > i[s + 1][e]) {
                    var o = i[s + 1];
                    i[s + 1] = i[s],
                    i[s] = o
                }
                return i
            },
            t.largeToSmallArr = function(t, e) {
                for (var i = t,
                n = 0; n < i.length; n++) for (var s = 0; s < i.length - 1 - n; s++) if (i[s][e] < i[s + 1][e]) {
                    var o = i[s + 1];
                    i[s + 1] = i[s],
                    i[s] = o
                }
                return i
            },
            t
        },
        cc._RFpop()
    },
    {}],
    roomLogic: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "6f769cZJM9IAKdyXbro/5ra", "roomLogic"),
        window.logic.room = function() {
            var t = {},
            e = kf.require("util.byteProtocol"),
            i = kf.require("util.network"),
            n = kf.require("basic.clientEvent"),
            s = kf.require("logic.dict"),
            o = kf.require("util.lang"),
            a = 0,
            r = 0;
            return t.init = function() {
                this.fishHit = this.fishHit || {},
                this.bulletCount = 0,
                this.createTime = 0,
                this.interval = .1,
                this.pauseWeapon = !1,
                this.fishDataReady = !1,
                this.updateDuration = this.interval,
                this.createPool(),
                this.initEffectTexture(),
                this.registerMsg(),
                this.loginLogic = kf.require("logic.login"),
                this.timeLogic = kf.require("logic.time"),
                this.persistNode = cc.find("persistNode").getComponent("persistNode"),
                this.frameRate = 0,
                this.frameRateCount = 0,
                this.isAndroid = isAndroidBrowser()
            },
            t.registerMsg = function() {
                i.registerEvent("RoomListRespone",
                function(t) {}.bind(this)),
                i.registerEvent("IntoGameRespone",
                function(t) {
                    var i = e.getFieldValueEx(t, "userdata");
                    this.userData = [];
                    for (var s = 0; s < i.length; s++) {
                        var o = i[s],
                        a = {
                            uin: e.getFieldValueEx(o, "uin"),
                            name: e.getFieldValueEx(o, "name"),
                            seatid: e.getFieldValueEx(o, "seatid"),
                            bullet: e.getFieldValueEx(o, "bullet"),
                            gunid: e.getFieldValueEx(o, "gunid"),
                            score: e.getFieldValueEx(o, "score")
                        };
                        this.userData.push(a)
                    }
                    this.fishDataReady = !1,
                    n.dispatchEvent("intoGame", e.getFieldValueEx(t, "intoroom_flag"))
                }.bind(this)),
                i.registerEvent("OutGameRespone",
                function(t) {
                    var i = e.getFieldValue("OutGameRespone", "uin");
                    if (this.loginLogic.isPlayer(i)) this.fishDataReady = !1,
                    this.cleanBulletNum(),
                    n.dispatchEvent("OutGame");
                    else {
                        for (var t = {
                            seatid: this.getSeatIdByUin(i)
                        },
                        s = 0; s < this.userData.length; s++) this.removeUserByUin(i);
                        n.dispatchEvent("playerQuit", t)
                    }
                    this.removeUserByUin(i)
                }.bind(this)),
                i.registerEvent("PlayerInfoChangeRespone",
                function(t) {
                    for (var i = e.getFieldValueEx(t, "uin"), s = e.getFieldValueEx(t, "gunid"), o = 0; o < this.userData.length; o++) this.userData[o].uin === i && (this.userData[o].gunid = s);
                    n.dispatchEvent("changeGun", i, s)
                }.bind(this)),
                i.registerEvent("SceneRespone",
                function(t) {
                    this.sceneId = e.getFieldValueEx(t, "sceneid");
                    var i = e.getFieldValueEx(t, "fishdata");
                    this.initFishData(this.sceneId, i);
                    s.getScene(this.sceneId);
                    this.passTime = e.getFieldValueEx(t, "usetime") / 1e3,
                    this.createTime = this.timeLogic.now(),
                    this.updateDuration = this.interval,
                    0 === e.getFieldValueEx(t, "usetime") && n.dispatchEvent("refreshScene")
                }.bind(this)),
                i.registerEvent("SceneStateRespone",
                function(t) {
                    var i = (e.getFieldValueEx(t, "sceneid"), this.getFishSpeedType());
                    n.dispatchEvent("setFishSpeed", i)
                }.bind(this)),
                n.registerEvent("loginSuccess",
                function(t) {
                    this.getRoomList()
                }.bind(this)),
                i.registerEvent("PlayerJoinRespone",
                function(t) {
                    var i = {
                        uin: e.getFieldValueEx(t, "uin"),
                        name: e.getFieldValueEx(t, "name"),
                        seatid: e.getFieldValueEx(t, "seatid"),
                        bullet: e.getFieldValueEx(t, "bullet"),
                        gunid: e.getFieldValueEx(t, "gunid"),
                        score: e.getFieldValueEx(t, "score")
                    };
                    this.userData.push(i),
                    n.dispatchEvent("playerJoin", i)
                }.bind(this)),
                i.registerEvent("HitFishRespone",
                function(t) {
                    var i = e.getFieldValueEx(t, "uin"),
                    s = e.getFieldValueEx(t, "score"),
                    o = e.getFieldValueEx(t, "gunid"),
                    a = e.getFieldValueEx(t, "fishdata"),
                    r = this.getSeatIdByUin(i),
                    c = {
                        uin: i,
                        score: s,
                        gunid: o,
                        seatid: r,
                        fishdata: a
                    };
                    n.dispatchEvent("hitFishRespone", c),
                    n.dispatchEvent("showGoldCoin", s, r)
                }.bind(this)),
                i.registerEvent("HitFishMissRespone",
                function(t) {}.bind(this)),
                i.registerEvent("UserCurrencyRespone",
                function(t) {
                    e.setFieldValue("LoginRespone", "money", e.getFieldValueEx(t, "money")),
                    e.setFieldValue("LoginRespone", "coin", e.getFieldValueEx(t, "coin")),
                    e.setFieldValue("LoginRespone", "ticket", e.getFieldValueEx(t, "ticket")),
                    n.dispatchEvent("updateTicket"),
                    n.dispatchEvent("updateMoney")
                }.bind(this)),
                i.registerEvent("ShootRespone",
                function(t) {
                    var i = {
                        uin: e.getFieldValueEx(t, "uin"),
                        order: e.getFieldValueEx(t, "order"),
                        x: e.getFieldValueEx(t, "x"),
                        y: e.getFieldValueEx(t, "y"),
                        isCompute: e.getFieldValueEx(t, "is_compute")
                    };
                    n.dispatchEvent("playerShoot", i)
                }.bind(this)),
                i.registerEvent("ChangeSeatRespone",
                function(t) {
                    n.dispatchEvent("changeSeatRespone")
                }.bind(this)),
                i.registerEvent("protoChallengeDynamicRankResponse",
                function(t) {
                    n.dispatchEvent("showChallengeDynamicRank")
                }.bind(this)),
                i.registerEvent("protoDoubleRewardNotice",
                function(t) {
                    e.getFieldValueEx(t, "timeLeft") > 0 ? n.dispatchEvent("showEnergyGun") : e.getFieldValueEx(t, "timeLeft") <= 0 && n.dispatchEvent("hideEnergyGun")
                }.bind(this)),
                i.registerEvent("protoDoubleRewardReady",
                function(t) {
                    n.dispatchEvent("doubleRewardReady", t)
                }.bind(this)),
                i.registerEvent("AccountALMSInfoRespone",
                function(t) {
                    this.accountALMSCount = e.getFieldValueEx(t, "alms")
                }.bind(this)),
                i.registerEvent("AccountALMSRespone",
                function(t) {
                    this.accountALMSCount = e.getFieldValueEx(t, "alms")
                }.bind(this))
            },
            t.afterVisit = function() {
                if (a++, r += cc.director.getDeltaTime(), r > 1 && (this.frameRate = a / r, a = 0, r = 0), !(this.frameRate > 10)) {
                    if (this.frameRateCount++, this.frameRateCount >= 10) var e = {
                        message: o.get("settingNotice"),
                        button1: {
                            name: o.get("MBCANCEL"),
                            frame: 0,
                            callback: function() {
                                t.stopProfiling()
                            }.bind(this)
                        },
                        button3: {
                            name: o.get("MBOK"),
                            frame: 1,
                            callback: function() {
                                t.stopProfiling(),
                                cc.sys.openURL(window.clientConfig.noticeUrl)
                            }.bind(this)
                        }
                    };
                    n.dispatchEvent("showMessage", e)
                }
            },
            t.resumeProfiling = function() {
                cc.director.on(cc.Director.EVENT_AFTER_VISIT, t.afterVisit)
            },
            t.stopProfiling = function() {
                cc.director.off(cc.Director.EVENT_AFTER_VISIT, t.afterVisit)
            },
            t.getRoomList = function() {
                var t = e.getFieldValue("LoginRespone", "area_list")[0],
                n = [this.loginLogic.getUin(), e.getFieldValueEx(t, "game_id"), e.getFieldValueEx(t, "area_id")];
                i.send("RoomListRequest", n)
            },
            t.intoGameRequest = function(t) {
                var e = [this.loginLogic.getUin(), t, 0];
                i.send("IntoGameRequest", e)
            },
            t.fastIntoRoomRequest = function() {
                var t = [this.loginLogic.getUin(), 1];
                i.send("FastIntoRoomRequest", t, !0)
            },
            t.OutGameRequest = function() {
                var t = [this.loginLogic.getUin()];
                i.send("OutGameRequest", t)
            },
            t.challengeDynamicRankRequest = function(t, e) {
                var n = [this.loginLogic.getUin(), t, e];
                i.send("protoChallengeDynamicRankRequest", n)
            },
            t.changeSeatRequest = function(t) {
                var n = [this.loginLogic.getUin(), e.getFieldValue("IntoGameRespone", "room_id"), "0", t];
                i.send("ChangeSeatRequest", n)
            },
            t.changeSeatData = function(t, e) {
                for (var i = 0; i < this.userData.length; i++) this.userData[i].uin === t && (this.userData[i].seatid = e)
            },
            t.changeGunRequest = function(t) {
                t = parseInt(t);
                var e = [this.loginLogic.getUin(), t];
                i.send("ChangeGunRequest", e)
            },
            t.shootRequest = function(t, e) {
                if (this.bulletCalculate(1), !(this.bulletCount >= 50)) {
                    var n = [this.loginLogic.getUin(), e, t.x, t.y, 0];
                    i.send("ShootRequest", n, !0)
                }
            },
            t.syncSceneRequest = function() {
                var t = [this.loginLogic.getUin(), e.getFieldValue("RoomListRespone", "room_data")[0][0].value, 0];
                i.send("SyncSceneRequest", t)
            },
            t.saveHitFish = function(t, e, i, s) {
                this.fishTypeData = this.fishTypeData || 0,
                this.fishTypeId = this.fishTypeId || [],
                this.fishScreenData = this.fishScreenData || 0,
                this.fishBillData = this.fishBillData || 0;
                var o = "bullet" + t;
                switch (this.fishHit[o] = this.fishHit[o] || [], i) {
                case 1:
                    if (this.fishHit[o].length >= 5) return;
                    this.fishHit[o].push(e);
                    break;
                case 2:
                    if (this.fishHit[o].length >= 5) return;
                    this.fishHit[o].push(e);
                    break;
                case 3:
                    this.fishTypeData = e;
                    var a = s.split(";");
                    n.dispatchEvent("pushTypeFish", a);
                    break;
                case 4:
                    this.fishScreenData = e;
                    break;
                case 5:
                    this.fishBillData = e;
                    break;
                case 6:
                    this.fishScreenData = e,
                    n.dispatchEvent("pushScreenFish", this.fishHit[o])
                }
            },
            t.hitFishRequest = function(t) {
                void 0 === this.fishHit["bullet" + t] && (this.fishHit["bullet" + t] = []),
                this.fishTypeData || (this.fishTypeData = 0),
                this.fishTypeId || (this.fishTypeId = []),
                this.fishScreenData || (this.fishScreenData = 0),
                this.fishBillData || (this.fishBillData = 0);
                var e = [this.loginLogic.getUin(), t, this.fishHit["bullet" + t], this.fishTypeData, this.fishTypeId, this.fishScreenData, this.fishBillData, 0];
                i.send("HitFishRequest", e, !0),
                this.fishHit["bullet" + t] = [],
                this.fishTypeData = 0,
                this.fishTypeId = [],
                this.fishScreenData = 0,
                this.fishBillData = 0
            },
            t.accountALMSInfoRequest = function() {
                var t = [this.loginLogic.getUin()];
                i.send("AccountALMSInfoRequest", t)
            },
            t.accountALMSRequest = function() {
                var t = [this.loginLogic.getUin()];
                i.send("AccountALMSRequest", t)
            },
            t.getFishSpeedType = function() {
                var t, i = this.passTime + (this.timeLogic.now() - this.createTime) / 1e3;
                switch (e.getFieldValue("SceneStateRespone", "state")) {
                case 0:
                    t = 0;
                    break;
                case 1:
                    t = 0 === i ? 2 : 1
                }
                return t
            },
            t.cleanBulletNum = function() {
                this.bulletCount = 0
            },
            t.bulletCalculate = function(t) {
                if (this.bulletCount += t, this.bulletCount >= 50) {
                    if (this.bulletCount = 50, this.pauseWeapon) return;
                    this.pauseWeapon = !0,
                    n.dispatchEvent("showOkMessage", "bulletTooMany", !1)
                } else this.bulletCount < 0 ? this.cleanBulletNum() : this.pauseWeapon = !1
            },
            t.setPauseWeapon = function(t) {
                this.pauseWeapon = t
            },
            t.createPool = function() {
                cc.loader.loadResDir("fishPrefab",
                function(t, e) {
                    for (var i = {
                        bullet: 50,
                        Drip: 5,
                        Net: 50,
                        Fish_117: 2,
                        Fish_118: 2,
                        Fish_119: 2,
                        Fish_120: 2,
                        Fish_121: 2,
                        Fish_122: 2,
                        Fish_123: 2,
                        Fish_124: 2,
                        Fish_125: 2,
                        Fish_126: 2,
                        Fish_127: 2,
                        Fish_128: 2,
                        Fish_129: 2,
                        Fish_130: 2,
                        Fish_131: 2,
                        Fish_132: 2,
                        Fish_133: 2,
                        Fish_134: 2,
                        Fish_135: 2,
                        Fish_136: 2,
                        Fish_137: 2,
                        Fish_138: 2,
                        Fish_200001: 1,
                        Fish_200003: 1,
                        Fish_200004: 1,
                        Fish_200005: 1,
                        Fish_200006: 1,
                        Fish_200007: 1,
                        Fish_200008: 1,
                        Fish_200009: 1,
                        Fish_200010: 1,
                        Fish_200011: 1,
                        Fish_200012: 1,
                        Fish_200013: 1,
                        Fish_500001: 1,
                        Fish_500002: 1,
                        Fish_500005: 1,
                        Fish_500010: 1,
                        Fish_500020: 1,
                        Fish_500050: 1,
                        Fish_500100: 1,
                        Coin: 20,
                        GoldCoin1: 5,
                        GoldCoin2: 5,
                        goldDown: 4,
                        money: 20
                    },
                    s = 0; s < e.length; s++) {
                        var o = e[s];
                        this[o.name + "Pool"] = new cc.NodePool,
                        this[o.name + "Prefab"] = o
                    }
                    for (var s = 0; s < e.length; s++) for (var o = e[s], a = i[o.name] || 10, r = 0; r < a; r++) this[o.name + "Pool"].put(cc.instantiate(o));
                    n.dispatchEvent("preloadFinish", "room")
                }.bind(this))
            },
            t.initEffectTexture = function() {
                cc.loader.loadResDir("effects",
                function(t, e) {}.bind(this))
            },
            t.getChangeGunIndex = function(t) {
                var e = 0;
                switch (t) {
                case "Gun_0":
                    e = 0;
                    break;
                case "Gun_2":
                    e = 1;
                    break;
                case "Gun_4":
                    e = 2
                }
                return e
            },
            t.setGunLevel = function(t, e) {
                this["gun" + t + "level"] = e
            },
            t.getTicketMultiple = function(t) {
                switch (e.getFieldValue("IntoGameRespone", "room_id").toString()) {
                case s.getRoomIdByName("room1"):
                    var i = 10;
                    break;
                case s.getRoomIdByName("room2"):
                    var i = 100;
                    break;
                case s.getRoomIdByName("room3"):
                    var i = 100
                }
                var n = this["gun" + t + "level"] / i;
                return n
            },
            t.getNextLevelGunId = function(t, e, i, n) {
                for (var o = s.getGunList(t), a = 0, r = 0; r < o.length; r++) o[r] === e.toString() && (a = r);
                return n ? a + i < 0 ? a = 0 : a += i: a + i < 0 ? a = o.length - 1 : a + i >= o.length ? a = 0 : a += i,
                o[a]
            },
            t.releasePool = function() {},
            t.getPrefab = function(t) {
                var e = void 0;
                if (this[t + "Pool"] && this[t + "Prefab"]) {
                    var i = this[t + "Pool"];
                    if (!i) return;
                    e = i.size() > 0 ? i.get() : cc.instantiate(this[t + "Prefab"])
                }
                return e
            },
            t.putInPool = function(t, e) {
                this[t + "Pool"] && this[t + "Pool"].put(e)
            },
            t.initFishData = function(t, e) {
                var i = s.getShoal(t);
                if (0 !== i.length) {
                    this.arrFish = {},
                    this.arrFishRes = [];
                    for (var n = 0; n < i.length; n++) {
                        var o = "shoal" + i[n].ShoalID;
                        this.arrFish[o] = i[n];
                        for (var a = i[n].Formation.split(";"), r = 0; r < a.length; r++) {
                            var c = a[r] - 0,
                            h = "formationID" + c;
                            this.arrFish[o][h] = {},
                            this.arrFish[o][h].fish = [];
                            var l = s.getFormation(c);
                            if (0 !== l.length) for (var g = 0; g < l.length; g++) {
                                var d = l[g].FishID,
                                u = kf.clone(s.getFish(d));
                                if (void 0 !== u && (u.id = i[n].ShoalID << 20 | l[g].FormationID << 8 | l[g].FormationIndex, !this.removeFishById(e, u.id))) {
                                    var p = s.getPath(l[g].PathID);
                                    if (void 0 !== p) {
                                        u.created = !1;
                                        var f = {};
                                        f.obj = u,
                                        f.formation = l[g],
                                        f.path = p,
                                        this.arrFish[o][h].fish.push(f),
                                        this.arrFishRes.push(u.Res)
                                    }
                                }
                            }
                        }
                    }
                    this.fishDataReady = !0
                }
            },
            t.creatFishFormation = function(t) {
                for (var e in t) if (this.fishFor = t[e].fish, this.fishFor) for (var i = 0; i < this.fishFor.length; i++) {
                    var n = this.fishFor[i];
                    if (!n.obj.created) {
                        var s = n.formation.Per,
                        o = this.passTime + (this.timeLogic.now() - this.createTime) / 1e3;
                        s += (o - t.Delay) * t.PerSpeed,
                        s < 0 || s >= 1 ? s >= 1 && (n.obj.created = !0) : (this.createFish(n.obj, n.formation, t.PerSpeed, n.path, s, t.SceneID), n.obj.created = !0)
                    }
                }
            },
            t.createFish = function(t, e, i, s, o, a) {
                var r = this.getPrefab(t.Res);
                if (void 0 !== r) {
                    void 0 !== t && t.BaseScore && 1 == t.Type && t.BaseScore > 100 && n.dispatchEvent("showBossFishIn", t);
                    var c = {
                        fishFor: t,
                        fish: r,
                        speed: i,
                        path: s,
                        per: o,
                        formation: e,
                        sceneID: a
                    };
                    n.dispatchEvent("putFishInGame", c)
                }
            },
            t.getSeatIdByUin = function(t) {
                for (var e = void 0,
                i = 0; i < this.userData.length; i++) if (this.userData[i].uin === t) {
                    e = this.userData[i].seatid;
                    break
                }
                return e
            },
            t.removeUserByUin = function(t) {
                for (var e = 0; e < this.userData.length; e++) if (this.userData[e].uin === t) {
                    this.userData.splice(e, 1);
                    break
                }
            },
            t.removeFishById = function(t, i) {
                for (var n = 0; n < t.length; n++) if (e.getFieldValueEx(t[n], "fishid") === i) return t.splice(n, 1),
                !0;
                return ! 1
            },
            t.judgeRoomFlag = function(t) {
                var e = s.getRoom(t);
                this.roomFlag = e.ROOM_FLAG - 0,
                this.roomFlag >= 7 && this.roomFlag <= 9 && n.dispatchEvent("isChallenge")
            },
            t.setScheduleId = function(t, e, i) {
                this.roomId = t,
                this.scheduleId = e,
                this.duration = i
            },
            t.update = function(t) {
                if (this.fishDataReady && (this.updateDuration += t, !(this.updateDuration < this.interval))) {
                    this.updateDuration = 0;
                    for (var e in this.arrFish) this.creatFishFormation(this.arrFish[e])
                }
            },
            t
        },
        cc._RFpop()
    },
    {}],
    setting: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "b3060W/yeJDOZvoo9Pua5dc", "setting"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                bgVolume: cc.Slider,
                bgBackGround: cc.ProgressBar,
                effectVolume: cc.Slider,
                effectBackGround: cc.ProgressBar,
                lrSlider: cc.Slider,
                lrProgressBar: cc.ProgressBar,
                buttonBG: cc.Node,
                tick: cc.Node,
                lrNode: cc.Node,
                bfVolumeProgress: cc.Slider,
                effectVolumeProgress: cc.Slider
            },
            onLoad: function() {
                this.canvas = cc.find("Canvas"),
                this.configuration = kf.require("util.configuration"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.persistNode = cc.find("persistNode").getComponent("persistNode")
            },
            onEnable: function() {
                var t = this.configuration.getConfigData("bgVolume") || 1,
                e = this.configuration.getConfigData("effectVolume") || 1;
                this.bgVolume.progress = t,
                this.bgBackGround.progress = t,
                this.effectVolume.progress = e,
                this.effectBackGround.progress = e
            },
            init: function() {},
            closePopUp: function() {
                var t = this.node.getComponent(cc.Animation).play();
                t.wrapMode = cc.WrapMode.Reverse,
                this.clientEvent.dispatchEvent("hallPopUp"),
                this.scheduleOnce(function() {
                    this.node.active = !1
                },
                .5)
            },
            settingVolume: function() {
                this.bgBackGround.progress = this.bgVolume.progress,
                this.effectBackGround.progress = this.effectVolume.progress,
                this.persistNode.updateVolume(this.bgVolume.progress, this.effectVolume.progress)
            },
            input: function() {
                this.tick.active = !0,
                this.lrNode.active = !0
            },
            image_tick: function() {
                this.tick.active = !1,
                this.lrNode.active = !1
            },
            cancel: function() {
                this.node.active = !1
            },
            close: function() {
                this.configuration.setConfigData("bgVolume", this.bgVolume.progress || .01),
                this.configuration.setConfigData("effectVolume", this.effectVolume.progress || .01),
                this.configuration.save(),
                this.node.active = !1
            }
        }),
        cc._RFpop()
    },
    {}],
    shopItem: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "1b3f2NebyRKQ5Zi0uO5APd9", "shopItem"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                icon: cc.Sprite,
                value: cc.Label,
                price: cc.Label,
                goldGive: cc.Node,
                firstDouble: cc.Node,
                priceDiscount: cc.Node
            },
            onLoad: function() {
                this.protocol = kf.require("util.byteProtocol"),
                this.parent = cc.find("Canvas")
            },
            init: function(t) {
                if (this.prize = t.price, this.name = t.name, this.itemId = t.id, this.firstDouble.active = 1 === t.frist_double, 0 === t.price_discount ? (this.priceDiscount.active = !1, this.price.string = t.price) : (this.priceDiscount.active = !0, this.price.string = t.price_discount, this.priceDiscount.getComponent(cc.Label).string = t.price), this.goldGive.active = 0 !== t.gold_give, 0 !== t.gold) this.value.string = t.gold,
                this.goldGive.getChildByName("label").getComponent(cc.Label).string = "+" + t.gold_give,
                this.goldGive.width = 60 + 10 * t.gold_give.toString().length;
                else {
                    this.value.string = t.item_num;
                    var e = kf.require("logic.dict").getItemResPath(t.item_id);
                    cc.loader.loadRes(e,
                    function(t, e) {
                        var i = new cc.SpriteFrame;
                        i.initWithTexture(e),
                        this.icon.spriteFrame = i
                    }.bind(this))
                }
            },
            payGold: function() {
                kf.require("logic.bag").getPayUrl(this.name, this.prize, this.itemId)
            }
        }),
        cc._RFpop()
    },
    {}],
    shop: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "4b9c0ESnmFJqLVHxnEeLPzZ", "shop"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                item: cc.Prefab,
                layout: cc.Node,
                coinLabel: cc.Label,
                vip: cc.Prefab
            },
            onLoad: function() {
                this.canvas = cc.find("Canvas"),
                this.protocol = kf.require("util.byteProtocol"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.dictLogic = kf.require("logic.dict"),
                this.bagLogic = kf.require("logic.bag"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.hallLogic = kf.require("logic.hall"),
                this.hallLogic.getShopRequest(),
                this.registerMsg()
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerMsg: function() {
                this.registerHandler = [["updateMoney", this.updateMoney.bind(this)], ["showShopItem", this.showShopItem.bind(this)], ["updateShopItems", this.updateShopItems.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            init: function() {
                this.updateMoney()
            },
            updateMoney: function() {
                var t = this.protocol.getFieldValue("LoginRespone", "coin");
                t >= 1e4 ? this.coinLabel.string = parseInt(t / 1e4) + "万": this.coinLabel.string = t
            },
            updateShopItems: function(t) {
                for (var e = 0; e < t.length; e++) {
                    if (this.layout.children[e]) var i = this.layout.children[e];
                    else {
                        var i = cc.instantiate(this.item);
                        this.layout.addChild(i)
                    }
                    var n = t[e];
                    i.getComponent("shopItem").init(n)
                }
                if (this.layout.children.length > t.length) for (var s = t.length; s < this.layout.children.length;) this.layout.children[s].destroy(),
                this.layout.removeChild(this.layout.children[s])
            },
            showShopItem: function() {
                for (var t = 0; t < this.dictLogic.Shop.length; t++) {
                    if (this.layout.children[t]) var e = this.layout.children[t];
                    else {
                        var e = cc.instantiate(this.item);
                        this.layout.addChild(e)
                    }
                    var i = this.dictLogic.Shop[t];
                    e.getComponent("shopItem").init(i)
                }
                if (this.layout.children.length > this.dictLogic.Shop.length) for (var n = this.dictLogic.Shop.length; n < this.layout.children.length;) this.layout.children[n].destroy(),
                this.layout.removeChild(this.layout.children[n])
            },
            closePopUp: function() {
                this.buttonManager.close(this.node.parent, this.node.name, !0)
            },
            vipPopUp: function() {
                this.buttonManager.open(this.node, "vip", this.vip)
            }
        }),
        cc._RFpop()
    },
    {}],
    socket: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "d2c9e3n96BGcLWQp0KAAcvX", "socket"),
        window.util.socket = function() {
            var t = {
                web_socket: null,
                init: function() {},
                send: function(t) {
                    return this.web_socket && this.web_socket.readyState === WebSocket.OPEN ? (this.web_socket.send(t), null) : null
                },
                connect: function(e, i, n) {
                    var s = 0 !== i ? "ws://" + e + ":" + i + "/s": "ws://" + e + "/s";
                    return this.web_socket && this.web_socket.close(),
                    this.web_socket = new WebSocket(s),
                    this.web_socket.binaryType = "arraybuffer",
                    this.web_socket.onmessage = function(e) {
                        n(t.eventType.onmessage, e)
                    }.bind(this),
                    this.web_socket.onopen = function(e) {
                        n(t.eventType.onopen, e)
                    }.bind(this),
                    this.web_socket.onclose = function(e) {
                        this.web_socket = null,
                        n(t.eventType.onclose, e)
                    }.bind(this),
                    this.web_socket.onerror = function(e) {
                        n(t.eventType.onerror, e)
                    }.bind(this),
                    this
                },
                close: function() {
                    this.web_socket && (this.web_socket.close(), this.web_socket = null)
                }
            };
            return t.eventType = {
                onmessage: 1,
                onopen: 2,
                onclose: 3,
                onerror: 4
            },
            t
        },
        cc._RFpop()
    },
    {}],
    tableContainer: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "cd8cawOucZEY6i5wG2RwFPz", "tableContainer"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                table: cc.Prefab,
                refreshLabel: cc.Node,
                time: cc.Node,
                timeLabel: cc.Label,
                btnRefreshTable: cc.Button
            },
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent"),
                this.protocol = kf.require("util.byteProtocol"),
                this.hallLogic = kf.require("logic.hall"),
                this.registerMsg(),
                this.count = 4,
                this.isCount = !1
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerMsg: function() {
                this.registerHandler = [["getRoomTable", this.updateTable.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            updateTable: function() {
                for (var t = 0; t < this.hallLogic.table.length; t++) {
                    var e = this.hallLogic.table[t];
                    if (this.node.children[t]) var i = this.node.children[t];
                    else {
                        var i = cc.instantiate(this.table);
                        i.parent = this.node
                    }
                    var n = this.protocol.getFieldValueEx(this.hallLogic.tableData[t], "tableid");
                    i.tableId = n,
                    i.getComponent("table").init(e, t + 1, n)
                }
                if (this.node.children.length > this.hallLogic.table.length) for (var s = this.hallLogic.table.length; s < this.node.children.length;) this.node.children[s].destroy(),
                this.node.removeChild(this.node.children[s]);
                this.node.width = 435 * this.hallLogic.table.length
            },
            refreshTable: function() {
                this.refreshLabel.active = !1,
                this.time.active = !0,
                this.isCount = !0,
                this.count = 4,
                this.btnRefreshTable.interactable = !1;
                var t = this.protocol.getFieldValue("RoomListRespone", "room_data"),
                e = this.protocol.getFieldValueEx(t[2], "room_id");
                this.hallLogic.roomTableRequest(e)
            },
            update: function(t) {
                this.isCount !== !1 && (this.count -= t, this.timeLabel.string = parseInt(this.count), this.count >= 0 || (this.isCount = !1, this.refreshLabel.active = !0, this.time.active = !1, this.btnRefreshTable.interactable = !0))
            }
        }),
        cc._RFpop()
    },
    {}],
    table: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "214aaA4wopHiYAgbqQH7SME", "table"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                tableIdLabel: cc.Label
            },
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent"),
                this.protocol = kf.require("util.byteProtocol"),
                this.hallLogic = kf.require("logic.hall"),
                this.lang = kf.require("util.lang"),
                this.hallScene = cc.find("Canvas/hallScene").getComponent("hallScene"),
                this.masterDesk = this.hallScene.node.getChildByName("popup").getChildByName("masterDesk").getComponent("masterDesk")
            },
            init: function(t, e, i) {
                this.tableId = i;
                this.tableIdLabel.string = e + kf.require("logic.dict").getLanguage("130391")[1];
                for (var n = 1; n <= 4; n++) {
                    var s = cc.find("seat" + n, this.node),
                    o = cc.find("playerName" + n, this.node);
                    if (t) for (var a = 0; a < t.length; a++) t[a].seatid === n ? (s.active = !1, o.active = !0, cc.find("label", o).getComponent(cc.Label).string = t[a].name, cc.find("gold/label", o).getComponent(cc.Label).string = t[a].coin) : (s.active = !0, o.active = !1);
                    else s.active = !0,
                    o.active = !1
                }
            },
            joinSeat: function(t) {
                var e = this.protocol.getFieldValue("LoginRespone", "coin");
                if (e > 3e4) {
                    this.clientEvent.dispatchEvent("showWaiting", !0);
                    var i = this.protocol.getFieldValue("RoomListRespone", "room_data"),
                    n = this.protocol.getFieldValueEx(i[2], "room_id"),
                    s = t.currentTarget.name.slice(4);
                    this.hallLogic.enterSpecifySeatRequest(n, this.tableId, s)
                } else {
                    var o = this,
                    a = {
                        message: this.lang.get("noMoneyToRoom3"),
                        button1: {
                            name: this.lang.get("MBCANCEL"),
                            frame: 1,
                            callback: function() {}
                        },
                        button3: {
                            name: this.lang.get("MBMONEY"),
                            frame: 0,
                            callback: function() {
                                o.masterDesk.closePopUp(),
                                o.hallScene.shopPopUp()
                            }
                        }
                    };
                    this.clientEvent.dispatchEvent("showMessage", a)
                }
            }
        }),
        cc._RFpop()
    },
    {}],
    taskLogic: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "9dbc5rPGJJPMLHVB8vGobtC", "taskLogic"),
        window.logic.task = function() {
            var t = {},
            e = kf.require("util.byteProtocol"),
            i = kf.require("util.network"),
            n = kf.require("util.lang"),
            s = kf.require("basic.clientEvent"),
            o = kf.require("logic.dict"),
            a = kf.require("logic.login"),
            r = kf.require("util.richlabel");
            kf.require("logic.hall");
            return t.TASK_TYPE = {
                LIVENESS_NUM: 4,
                LOGIN_IN: 5,
                HIT_FISH_NUM: 6,
                SIGN_IN: 7,
                SHARP_TIME: 8,
                ONLINE_TIME: 9,
                HIT_FISH_COIN: 10,
                JOIN_COMPET_NUM: 11,
                JOIN_TALENT_NUM: 12,
                RECHARGE_NUM: 13
            },
            t.init = function() {
                cc.log("zq debug task init======================"),
                this.registerMsg(),
                this.loadMsgCount = 1
            },
            t.registerMsg = function() {
                i.registerEvent("protoQueryShareInfoResponse",
                function(t) {}.bind(this)),
                i.registerEvent("QueryLivenessTaskInfoRespone",
                function(t) {
                    this.getLivenessTask(),
                    s.dispatchEvent("showDailyTaskInfo")
                }.bind(this)),
                i.registerEvent("QuerySharpTimeGiftRespone",
                function(t) {}.bind(this)),
                i.registerEvent("protoQuerySignInRespone",
                function(t) {
                    s.dispatchEvent("updateSignIn"),
                    this.getHasSignInDay()
                }.bind(this)),
                i.registerEvent("protoGetSignInGiftListResponse",
                function(t) {
                    var i = e.getFieldValue("protoGetSignInGiftListResponse", "gifts");
                    s.dispatchEvent("updateSignInGiftList", i)
                }.bind(this)),
                i.registerEvent("GetLivenessGiftRespone",
                function(t) {
                    if (1 === e.getFieldValueEx(t, "result")) {
                        var i = e.getFieldValueEx(t, "reward_id"),
                        a = o.getReward(i).COIN_NUM,
                        r = e.getFieldValue("LoginRespone", "vip");
                        if (r > 0) {
                            var c = o.getVipDailyTask(r);
                            a = Number(a),
                            a = c / 100 * a + a
                        }
                        var h = n.get("livenessGift") + a,
                        l = {
                            message: h,
                            button2: {
                                name: n.get("MBOK"),
                                frame: 0,
                                callback: function() {}
                            }
                        };
                        s.dispatchEvent("showMessage", l)
                    }
                    s.dispatchEvent("refreshLivenessInfo")
                }.bind(this)),
                i.registerEvent("protoSignInRespone",
                function(t) {
                    e.setFieldValue("LoginRespone", "signin", 1),
                    s.dispatchEvent("showOkMessage", "getReward", !1)
                }.bind(this)),
                i.registerEvent("GenRedPacketResponse",
                function(t) {
                    var i = e.getFieldValueEx(t, "code"),
                    o = n.get("genRedPacketSuccess"),
                    a = {
                        message1: o,
                        editBox: i,
                        button2: {
                            name: n.get("MBOK"),
                            frame: 0,
                            callback: function() {}
                        }
                    };
                    s.dispatchEvent("showMessage", a)
                }.bind(this)),
                i.registerEvent("QueryRedPacketInfoResponse",
                function(t) {
                    s.dispatchEvent("showRedPacketOrder")
                }.bind(this)),
                i.registerEvent("DrawRedPacketResponse",
                function(t) {
                    var i = e.getFieldValueEx(t, "coin"),
                    o = n.get("drawRedPacketSuccess");
                    o = r.replaceString(o, i);
                    var a = {
                        message: o,
                        button2: {
                            name: n.get("MBOK"),
                            frame: 0,
                            callback: function() {}
                        }
                    };
                    s.dispatchEvent("showMessage", a)
                }.bind(this))
            },
            t.queryShareInfoRequest = function() {
                var t = [a.getUin()];
                i.send("protoQueryShareInfoRequest", t)
            },
            t.queryLivenessTaskInfoRequest = function() {
                var t = [a.getUin()];
                i.send("QueryLivenessTaskInfoRequest", t)
            },
            t.querySharpTimeGiftRequest = function() {
                var t = [a.getUin()];
                i.send("QuerySharpTimeGiftRequest", t)
            },
            t.querySignInRequest = function() {
                var t = [a.getUin()];
                i.send("protoQuerySignInRequest", t)
            },
            t.protoGetSignInGiftListRequest = function() {
                i.send("protoGetSignInGiftListRequest")
            },
            t.getLivenessGiftRequest = function(t) {
                var e = [a.getUin(), t];
                i.send("GetLivenessGiftRequest", e)
            },
            t.signInRequest = function() {
                var t = [a.getUin()];
                i.send("protoSignInRequest", t)
            },
            t.genRedPacketRequest = function(t) {
                var e = [t];
                i.send("GenRedPacketRequest", e)
            },
            t.queryRedPacketInfoRequest = function() {
                i.send("QueryRedPacketInfoRequest")
            },
            t.drawRedPacketRequest = function(t) {
                var e = [t];
                i.send("DrawRedPacketRequest", e)
            },
            t.countMsg = function() {
                this.loadMsgCount++,
                this.loadMsgCount > 4 && (s.dispatchEvent("showFreeGoldLabel"), this.loadMsgCount = 0)
            },
            t.getLeftCanShareLabel = function() {
                var t = e.getFieldValue("protoQueryShareInfoResponse", "shareNum"),
                i = e.getFieldValue("protoQueryShareInfoResponse", "leftCanReceiveCoin"),
                n = o.getLanguage("150307")[1],
                s = [t, i];
                return n = r.replaceString(n, s)
            },
            t.getLeftDailyTaskLabel = function() {
                for (var t = 0,
                i = 0; i < this.livenessAwardArr.length; i++) {
                    var n = e.getFieldValueEx(this.livenessAwardArr[i].serverInfo, "status");
                    if (3 !== n) {
                        var s = this.livenessAwardArr[i].dictInfo.REWARD,
                        a = o.getReward(s).COIN_NUM - 0;
                        t += a
                    }
                }
                var c = o.getLanguage("150308")[1];
                return c = r.replaceString(c, t)
            },
            t.getLeftSharpTimeGiftLabel = function() {},
            t.getLivenessTask = function() {
                this.livenessTaskArr = [],
                this.livenessAwardArr = [];
                for (var t = e.getFieldValue("QueryLivenessTaskInfoRespone", "task_list"), i = 0; i < t.length; i++) {
                    var n = e.getFieldValueEx(t[i], "task_id"),
                    s = (e.getFieldValueEx(t[i], "status"), o.getTask(n)),
                    a = s.TARGET_TYPE - 0;
                    if (4 === a) {
                        var r = {
                            dictInfo: s,
                            serverInfo: t[i]
                        };
                        this.livenessAwardArr.push(r)
                    } else if (a >= 6 && a <= 13) {
                        var c = {
                            dictInfo: s,
                            serverInfo: t[i]
                        };
                        this.livenessTaskArr.push(c)
                    }
                }
                for (var i = 0; i < this.livenessAwardArr.length; i++) for (var h = 0; h < this.livenessAwardArr.length - 1 - i; h++) if (this.livenessAwardArr[h].serverInfo.getTaskId(1) > this.livenessAwardArr[h + 1].serverInfo.getTaskId(1)) {
                    var l = this.livenessAwardArr[h + 1];
                    this.livenessAwardArr[h + 1] = this.livenessAwardArr[h],
                    this.livenessAwardArr[h] = l
                }
            },
            t.getSignInRewardInfo = function() {
                var t = [];
                t.data = [];
                for (var e = [], i = 1; i <= 7; i++) {
                    var n = o.getRewardIdByActivity(i),
                    s = n.ticket_num,
                    a = n.coin_num,
                    r = 0,
                    c = "";
                    s > 0 ? (r = s, c = "ticket", e.push(i)) : (r = a, c = "coin");
                    var h = {
                        type: c,
                        coin: r
                    };
                    t.data.push(h)
                }
                return t.idxList = e,
                t
            },
            t.getSignInMonthDay = function() {
                var t = [],
                e = new Date,
                i = e.getDate(),
                n = r.addDays(e, -(i - 1)),
                s = n.getDay();
                if (s > 0) for (var o = new Date(n.getFullYear(), n.getMonth(), 0).getDate(), a = 1; a <= s; a++) {
                    var c = {
                        day: o - (s - a),
                        isThisMonth: !1,
                        isSignIn: !1
                    };
                    t.push(c)
                }
                for (var h = new Date(n.getFullYear(), n.getMonth() + 1, 0), l = h.getDate(), g = 1; g <= l; g++) {
                    var c = {
                        day: g,
                        isThisMonth: !0,
                        isSignIn: this.hasSignInArr[g - 1]
                    };
                    t.push(c)
                }
                var d = h.getDay();
                if (d < 6) for (var u = 1; u <= 6 - d; u++) {
                    var c = {
                        day: u,
                        isThisMonth: !1,
                        isSignIn: !1
                    };
                    t.push(c)
                }
                return t
            },
            t.getSignInRewardNum = function(t) {
                var i = e.getFieldValueEx(t, "signInReward"),
                n = e.getFieldValueEx(t, "contiReward"),
                s = e.getFieldValueEx(t, "totalReward");
                if (0 === this.vip) var a = 1;
                else var a = o.getVip(this.vip).VIP_SIGNIN_PLUS / 100;
                var r = {};
                if (0 !== i) {
                    var c = o.getReward(i).COIN_NUM;
                    r.reward1 = c * a
                }
                if (0 !== n) {
                    var c = o.getReward(n).COIN_NUM;
                    r.reward2 = c * a
                }
                if (0 !== s) {
                    var c = o.getReward(s).COIN_NUM;
                    r.reward3 = c * a
                }
                return r
            },
            t.getHasSignInDay = function() {
                this.vip = e.getFieldValue("LoginRespone", "vip");
                var t = e.getFieldValue("protoQuerySignInRespone", "nowtime"),
                i = e.getFieldValue("protoQuerySignInRespone", "detail");
                this.unixTimestamp = new Date(1e3 * t),
                this.today = this.unixTimestamp.getDate();
                var n = new Date(this.unixTimestamp.getFullYear(), this.unixTimestamp.getMonth() + 1, 0).getDate();
                this.hasSignInArr = [];
                for (var s = i.toString(2), o = 1; o <= n; o++) s[s.length - o] && "1" === s[s.length - o] ? this.hasSignInArr.push(!0) : this.hasSignInArr.push(!1)
            },
            t.getRewardInfo = function() {
                for (var t, e, i = [], n = 2; n <= 7; n++) t = o.getRewardIdByActivity(5, n),
                e = o.getReward(t).COIN_NUM,
                i.push(e);
                return i
            },
            t.getHasSignIn = function() {
                return !! this.hasSignInArr[this.today - 1]
            },
            t
        },
        cc._RFpop()
    },
    {}],
    time: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "276b4XCPvZOcZ7ILUDrQBsu", "time"),
        window.logic.time = function() {
            var t = 86400,
            e = kf.require("util.lang"),
            i = 0,
            n = {};
            return n.init = function() {
                this.currentTime = (new Date).getTime(),
                this.timeZoneOffset = i
            },
            n.now = function() {
                return this.currentTime
            },
            n.syncTime = function(t, e) {
                this.currentTime = t,
                e ? this.timeZoneOffset = 3600 * e: this.timeZoneOffset = i
            },
            n.getDurationToNextDay = function() {
                var e = this.now(),
                n = new Date(e + i),
                s = 3600 * n.getHours() + 60 * n.getMinutes() + n.getSeconds();
                return t - s
            },
            n.getDurationToFixedTime = function(t) {
                var e = this.now();
                return t - e
            },
            n.getDaysBySeconds = function(e) {
                return math.floor(e / t)
            },
            n.getSecondsFromDays = function(e) {
                return e * t
            },
            n.getDateInfo = function(t) {
                return new Date(t)
            },
            n.kfUpdate = function(t) {
                this.currentTime = this.currentTime + 1e3 * t
            },
            n.parsetZeroStr = function(t) {
                var e = "";
                return t < 10 && (e = "0"),
                e + t
            },
            n.formatTime = function(t) {
                var e = parseInt(t / 1e3),
                i = 0,
                n = 0;
                e > 60 && (i = parseInt(e / 60), e = parseInt(e % 60), i > 60 && (n = parseInt(i / 60), i = parseInt(i % 60)));
                var s = "" + this.parsetZeroStr(e);
                return i > 0 && (s = "" + this.parsetZeroStr(i) + ":" + s),
                n > 0 && (s = "" + this.parsetZeroStr(n) + ":" + s),
                s
            },
            n.formatTime2 = function(t) {
                var i = this.getDateInfo(t),
                n = i.getMonth() + 1,
                s = i.getDate();
                return n < 10 && (n = "0" + n),
                s < 10 && (s = "0" + s),
                e.get("Time_M_D", n, s)
            },
            n.formatTime3 = function(t) {
                var i = this.getDateInfo(t),
                n = i.getYear() + 1900,
                s = i.getMonth() + 1,
                o = i.getDate();
                return s < 10 && (s = "0" + s),
                o < 10 && (o = "0" + o),
                e.get("Time_Y_M_D", n, s, o)
            },
            n.formatTime4 = function(t) {
                var i = t - this.currentTime,
                n = math.floor(i / 864e5),
                s = math.floor((i - 864e5 * n) / 36e5),
                o = math.floor((i - 864e5 * n - 36e5 * s) / 6e4);
                return e.get("Time_D_H_M", n, s, o)
            },
            n.getLeftTime = function(t) {
                var i = t - this.currentTime;
                if (i < 0) return e.get("Time_M", 1);
                var n = math.floor(i / 864e5),
                s = math.floor((i - 864e5 * n) / 36e5),
                o = math.floor((i - 864e5 * n - 36e5 * s) / 6e4);
                return n >= 1 ? e.get("Time_D", n) : s >= 1 ? e.get("Time_H", s) : o >= 1 ? e.get("Time_M", o) : e.get("Time_M", 1)
            },
            n.lbsGetLeftTime = function(t) {
                var i = t - n.currentTime;
                if (i <= 0) return e.get("lbs_free");
                var s = math.floor(i / 864e5),
                o = math.floor((i - 864e5 * s) / 36e5),
                a = math.floor((i - 864e5 * s - 36e5 * o) / 6e4);
                return s >= 1 ? e.get("Time_D", s) : o >= 1 ? e.get("Time_H", o) : a >= 1 ? e.get("Time_M", a) : e.get("Time_M", 1)
            },
            n
        },
        cc._RFpop()
    },
    {}],
    topContent: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "5829foHzotGkY/si3f90jSL", "topContent"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                coinTop: cc.Prefab,
                rankNumber: cc.Label
            },
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent"),
                this.protocol = kf.require("util.byteProtocol"),
                this.hallLogic = kf.require("logic.hall"),
                this.dictLogic = kf.require("logic.dict"),
                this.registerMsg(),
                this.itemPrefab()
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerMsg: function() {
                this.registerHandler = [["coinTopSuccess", this.coinTopSuccess.bind(this)], ["ticketTopSuccess", this.ticketTopSuccess.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            itemPrefab: function() {
                for (var t = 0; t < 47; t++) {
                    var e = cc.instantiate(this.coinTop);
                    this.node.addChild(e)
                }
                this.contentChild = this.node.children
            },
            coinTopSuccess: function() {
                for (var t = 0; t < this.hallLogic.coinTop.length; t++) {
                    var e = this.hallLogic.coinTop[t];
                    this.protocol.getFieldValue("DrawDayRankResponse", "rewardID") && (e.draw = !0),
                    this.contentChild[t] && this.contentChild[t].getComponent && this.contentChild[t].getComponent("topItem").coinInit(e)
                }
                var i = this.protocol.getFieldValue("CoinRankRespone", "rank");
                0 === i ? this.rankNumber.string = this.dictLogic.getLanguage("130171")[1] : this.rankNumber.string = i
            },
            ticketTopSuccess: function() {
                for (var t = 0; t < this.hallLogic.ticketTop.length; t++) {
                    var e = this.hallLogic.ticketTop[t];
                    this.protocol.getFieldValue("DrawWeekRankResponse", "rewardID") && (e.draw = !0),
                    this.contentChild[t] && this.contentChild[t].getComponent && this.contentChild[t].getComponent("topItem").ticketInit(e)
                }
                var i = this.protocol.getFieldValue("TicketRankRespone", "rank");
                0 === i ? this.rankNumber.string = this.dictLogic.getLanguage("130171")[1] : this.rankNumber.string = i
            }
        }),
        cc._RFpop()
    },
    {}],
    topItem: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "cbf27wyF5NDbY6zomYfS1gj", "topItem"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                rank: cc.Label,
                nick: cc.Label,
                number: cc.Label,
                medal: cc.Node,
                medalIcon: [cc.SpriteFrame],
                crown: cc.Node,
                rewardButton: cc.Node,
                topRgb1: {
                    "default": new cc.Color(0, 0, 0, 255),
                    type: cc.Color
                },
                topRgb2: {
                    "default": new cc.Color(0, 0, 0, 255),
                    type: cc.Color
                },
                topRgb3: {
                    "default": new cc.Color(0, 0, 0, 255),
                    type: cc.Color
                },
                topRgb4: {
                    "default": new cc.Color(0, 0, 0, 255),
                    type: cc.Color
                }
            },
            onLoad: function() {
                this.protocol = kf.require("util.byteProtocol"),
                this.hallLogic = kf.require("logic.hall"),
                this.dictLogic = kf.require("logic.dict"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.uin = this.protocol.getFieldValue("LoginRespone", "uin"),
                this.topType = 0
            },
            coinInit: function(t) {
                this.rank.string = t.rank,
                this.rankNum = t.rank,
                this.nick.string = t.nick,
                this.number.string = t.score,
                this.topType = 1,
                this.setTopColor(t.rank),
                t.uin !== this.uin ? this.rewardButton.active = !1 : (this.rewardButton.active = !0, this.rewardButton.getComponent(cc.Button).interactable = !t.draw, this.rewardButton.getComponent(cc.Button).enabled = !t.draw)
            },
            ticketInit: function(t) {
                this.rank.string = t.rank,
                this.rankNum = t.rank,
                this.nick.string = t.nick,
                this.number.string = t.score,
                this.topType = 2,
                this.setTopColor(t.rank),
                t.uin !== this.uin ? this.rewardButton.active = !1 : (this.rewardButton.active = !0, this.rewardButton.getComponent(cc.Button).interactable = !t.draw, this.rewardButton.getComponent(cc.Button).enabled = !t.draw)
            },
            arenaRankInit: function(t) {
                var e = this.protocol.getFieldValueEx(t, "rank"),
                i = this.protocol.getFieldValueEx(t, "nick"),
                n = this.protocol.getFieldValueEx(t, "score"),
                s = this.protocol.getFieldValueEx(t, "vip");
                switch (this.rank.string = e, this.nick.string = i, this.number.string = n, e) {
                case 1:
                    this.node.getChildByName("Icon_An_crown").active = !0,
                    this.node.getChildByName("Image_Medal01").active = !0,
                    this.node.getChildByName("Image_Medal01").getComponent(cc.Sprite).spriteFrame = this.medal[0];
                    break;
                case 2:
                    this.node.getChildByName("Image_Medal01").active = !0,
                    this.node.getChildByName("Image_Medal01").getComponent(cc.Sprite).spriteFrame = this.medal[1];
                    break;
                case 3:
                    this.node.getChildByName("Image_Medal01").active = !0,
                    this.node.getChildByName("Image_Medal01").getComponent(cc.Sprite).spriteFrame = this.medal[2]
                }
                0 !== s && (this.node.getChildByName("vip").active = !0)
            },
            rewardButtonClick: function() {
                if (1 === this.topType) {
                    if (!this.dictLogic.getRewardIdByActivity(7, this.rankNum)) return void this.clientEvent.dispatchEvent("showOkMessage", "errorcode11", !1);
                    this.hallLogic.drawDayRankRequest()
                } else if (2 === this.topType) {
                    if (!this.dictLogic.getRewardIdByActivity(7, this.rankNum)) return void this.clientEvent.dispatchEvent("showOkMessage", "errorcode11", !1);
                    this.hallLogic.drawWeekRankRequest()
                }
            },
            setTopColor: function(t) {
                switch (t) {
                case 1:
                    this.rank.node.color = this.topRgb1,
                    this.nick.node.color = this.topRgb1,
                    this.number.node.color = this.topRgb1,
                    this.medal.active = !0,
                    this.medal.getComponent(cc.Sprite).spriteFrame = this.medalIcon[0],
                    this.crown.active = !0;
                    break;
                case 2:
                    this.rank.node.color = this.topRgb2,
                    this.nick.node.color = this.topRgb2,
                    this.number.node.color = this.topRgb2,
                    this.medal.active = !0,
                    this.medal.getComponent(cc.Sprite).spriteFrame = this.medalIcon[1],
                    this.crown.active = !1;
                    break;
                case 3:
                    this.rank.node.color = this.topRgb3,
                    this.nick.node.color = this.topRgb3,
                    this.number.node.color = this.topRgb3,
                    this.medal.active = !0,
                    this.medal.getComponent(cc.Sprite).spriteFrame = this.medalIcon[2],
                    this.crown.active = !1;
                    break;
                default:
                    this.rank.node.color = this.topRgb4,
                    this.nick.node.color = this.topRgb4,
                    this.number.node.color = this.topRgb4,
                    this.medal.active = !1,
                    this.crown.active = !1
                }
            }
        }),
        cc._RFpop()
    },
    {}],
    top: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "58482Q2vMxMuabSN8QO6JZY", "top"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                coinPageNode: cc.Node,
                ticketPageNode: cc.Node
            },
            onLoad: function() {
                this.canvas = cc.find("Canvas"),
                this.hallLogic = kf.require("logic.hall"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.buttonManager = kf.require("util.buttonManager")
            },
            init: function() {
                this.coinPage()
            },
            closePopUp: function() {
                this.buttonManager.close(this.node.parent, this.node.name, !0),
                this.coinPageNode.active = !0,
                this.ticketPageNode.active = !1
            },
            coinPage: function() {
                this.hallLogic.coinTop ? this.clientEvent.dispatchEvent("coinTopSuccess") : this.hallLogic.topCoin(),
                this.coinPageNode.active = !0,
                this.ticketPageNode.active = !1
            },
            ticketPage: function() {
                this.hallLogic.ticketTop ? this.clientEvent.dispatchEvent("ticketTopSuccess") : this.hallLogic.topTicket(),
                this.ticketPageNode.active = !0,
                this.coinPageNode.active = !1
            }
        }),
        cc._RFpop()
    },
    {}],
    userProtocol: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "5265cOcLB5B67tVsU6/p3en", "userProtocol"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                protocolPre: cc.Prefab,
                tick: cc.Node
            },
            onLoad: function() {
                this.clientEvent = kf.require("basic.clientEvent")
            },
            protocol1: function() {
                kf.require("util.buttonManager").open(this.node, "protocol", this.protocolPre)
            },
            input: function() {
                this.tick.active = !0
            },
            tick1: function() {
                this.tick.active = !1
            }
        }),
        cc._RFpop()
    },
    {}],
    vip: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "20587kZBW9Da6VZqbyTiL4J", "vip"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                novicePacks: cc.Prefab
            },
            onLoad: function() {
                this.canvas = cc.find("Canvas"),
                this.dictLogic = kf.require("logic.dict"),
                this.protocol = kf.require("util.byteProtocol"),
                this.lang = kf.require("util.lang"),
                this.hallLogic = kf.require("logic.hall"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.vipLevel = this.protocol.getFieldValue("LoginRespone", "vip"),
                this.vipLevelInHallScene = cc.find("Canvas/hallScene/title_back/vip/vipNum").getComponent(cc.Label),
                this.totalRecharge = this.protocol.getFieldValue("LoginRespone", "total_recharge"),
                this.vipLevelShow = this.vipLevel,
                this.vipInfo = [],
                this.vipInfoLabel = this.node.getChildByName("input5").getChildByName("label1"),
                this.vipExplainLabel = this.node.getChildByName("input5").getChildByName("label2"),
                this.vipLevelUpLabel = this.node.getChildByName("vipLevelUpLabel").getComponent(cc.RichText),
                this.vipLevelUpProgress = this.node.getChildByName("button_Join2").getComponent(cc.ProgressBar),
                this.vipLevelUpProgressLabel = this.node.getChildByName("button_Join2").getChildByName("label1").getComponent(cc.Label),
                this.registerEvent()
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerEvent: function() {
                this.registerHandler = [["RechargeResponeEx", this.setVipLevelUp.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            init: function() {
                this.node.getChildByName("button_Left").active = !0,
                this.node.getChildByName("button_Right").active = !0,
                this.vipLevelShow = this.vipLevel,
                this.getVipInfo(),
                this.setVipLevelUp()
            },
            showVipLevel: function() {
                this.node.getChildByName("image_VIPstar").getChildByName("label").getComponent(cc.Label).string = this.vipLevel,
                this.vipExplainLabel.getComponent(cc.Label).string = this.dictLogic.getLanguage("150141")[1],
                0 === this.vipLevel ? this.node.getChildByName("button_Left").active = !1 : 10 === this.vipLevel && (this.node.getChildByName("button_Right").active = !1),
                this.vipLevelInHallScene.string = this.vipLevel
            },
            setVipLevelUp: function() {
                this.protocol.getFieldValue("RechargeResponeEx", "vip") ? (this.vipLevel = this.protocol.getFieldValue("RechargeResponeEx", "vip"), this.totalRecharge = this.protocol.getFieldValue("RechargeResponeEx", "total_recharge")) : (this.vipLevel = this.protocol.getFieldValue("LoginRespone", "vip"), this.totalRecharge = this.protocol.getFieldValue("LoginRespone", "total_recharge"));
                var t = this.dictLogic.getLanguage("140882")[1];
                t = this.hallLogic.getVipNextLevelExpString(t, this.vipLevel + 1, this.totalRecharge),
                this.vipLevelUpLabel.string = t,
                this.vipLevelUpProgress.progress = this.hallLogic.getVipCurrentLevelExpProgress(this.vipLevel, this.totalRecharge),
                this.vipLevelUpProgressLabel.string = this.totalRecharge + "/" + this.dictLogic.getVip(this.vipLevel + 1).Money;
                var e = "Image_VIPstar1";
                this.vipLevel >= 4 && this.vipLevel <= 6 ? e = "Image_VIPstar2": this.vipLevel > 6 && (e = "Image_VIPstar"),
                cc.loader.loadRes("vipIcon/" + e,
                function(t, e) {
                    var i = new cc.SpriteFrame;
                    i.initWithTexture(e),
                    this.node.getChildByName("image_VIPstar").getComponent(cc.Sprite).spriteFrame = i
                }.bind(this)),
                this.showVipLevel(),
                this.showVipInfo()
            },
            getVipInfo: function() {
                for (var t, e = 140894,
                i = 0; i < 10; i++) 0 !== i ? (t = this.dictLogic.getLanguage(e.toString())[1], t = this.hallLogic.setHeadVipLabel(t, i + 1), this.vipInfo.push(t)) : (t = this.dictLogic.getLanguage(e.toString())[1], t = this.hallLogic.setHeadVipLabel(t, i + 1), this.vipInfo.push(t))
            },
            showVipInfo: function() {
                this.node.getChildByName("image_VIPtitle").getChildByName("level").getComponent(cc.Label).string = this.lang.get("vip" + (this.vipLevelShow + 1)),
                this.vipInfoLabel.getComponent(cc.Label).string = this.vipInfo[this.vipLevelShow]
            },
            leftButtonClick: function() {
                this.vipLevelShow--,
                this.showVipInfo(),
                this.vipLevelShow < 10 && (this.node.getChildByName("button_Right").active = !0),
                0 === this.vipLevelShow && (this.node.getChildByName("button_Left").active = !1)
            },
            rightButtonClick: function() {
                this.vipLevelShow++,
                this.showVipInfo(),
                this.vipLevelShow > 0 && (this.node.getChildByName("button_Left").active = !0),
                9 === this.vipLevelShow && (this.node.getChildByName("button_Right").active = !1)
            },
            closePopUp: function() {
                var t = !0;
                this.buttonManager.close(this.node.parent, this.node.name, t)
            },
            novicePushUp: function() {
                switch (this.novicePacks.name) {
                case "popup":
                    this.buttonManager.open(this.node.parent, "novicePacks", this.novicePacks),
                    this.closePopUp();
                    break;
                case "shop":
                    this.closePopUp(),
                    this.buttonManager.open(this.node.parent, "shop", this.novicePacks);
                    break;
                case "exgratiaPackage":
                    this.closePopUp(),
                    this.node.parent.active = !1,
                    this.buttonManager.open(this.node.parent.parent, "novicePacks", this.novicePacks)
                }
            }
        }),
        cc._RFpop()
    },
    {}],
    waiting: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "b83e9vY5NJIWp2SeobRU4EZ", "waiting"),
        cc.Class({
            "extends": cc.Component,
            properties: {},
            onLoad: function() {
                this.node.active = !1,
                cc.game.addPersistRootNode(this.node),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.registerMsg()
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerMsg: function() {
                this.registerHandler = [["showWaiting", this.show.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            show: function(t) {
                this.node.active = t
            }
        }),
        cc._RFpop()
    },
    {}],
    warehours: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "ee7c0VMpd9PypRGF2aRqTQk", "warehours"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                accessNumber: cc.EditBox,
                nowCoinStr: cc.Label,
                warehoursCoinStr: cc.Label
            },
            onLoad: function() {
                this.canvas = cc.find("Canvas"),
                this.hallCoin = this.canvas.getChildByName("hallScene").getChildByName("button_titleGold").getChildByName("label_number").getComponent(cc.Label),
                this.hallLogic = kf.require("logic.hall"),
                this.buttonManager = kf.require("util.buttonManager"),
                this.protocol = kf.require("util.byteProtocol"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.registerMsg()
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerMsg: function() {
                this.registerHandler = [["updateMoney", this.updateMoney.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            init: function() {
                this.updateMoney()
            },
            updateMoney: function() {
                var t = this.protocol.getFieldValue("LoginRespone", "coin"),
                e = this.protocol.getFieldValue("LoginRespone", "bank_coin");
                this.nowCoinStr.string = t,
                this.warehoursCoinStr.string = e,
                t >= 1e4 ? this.hallCoin.string = parseInt(t / 1e4) + "万": this.hallCoin.string = t
            },
            depositCoin: function() {
                var t = this.accessNumber.string;
                0 === t.length ? this.clientEvent.dispatchEvent("showOkMessage", "130197", !0) : t > this.nowCoinStr.string ? this.clientEvent.dispatchEvent("showOkMessage", "130318", !0) : t > 5e7 ? this.clientEvent.dispatchEvent("showOkMessage", "130196", !0) : this.hallLogic.accessCoin(t, 0)
            },
            takeCoin: function() {
                var t = this.accessNumber.string;
                0 === t.length ? this.clientEvent.dispatchEvent("showOkMessage", "130197", !0) : t > this.warehoursCoinStr.string ? this.clientEvent.dispatchEvent("showOkMessage", "130318", !0) : t > 5e7 ? this.clientEvent.dispatchEvent("showOkMessage", "130196", !0) : this.hallLogic.accessCoin(t, 1)
            },
            closePopUp: function() {
                this.hallLogic.accessCoin(0, 0),
                this.buttonManager.close(this.node.parent, this.node.name, !0)
            }
        }),
        cc._RFpop()
    },
    {}],
    weapon: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "6dd43URsopNjIE6oesonJtv", "weapon"),
        cc.Class({
            "extends": cc.Component,
            properties: {
                id: 0,
                myWeapons: [cc.SpriteFrame],
                otherWeapons: [cc.SpriteFrame],
                addButton: cc.Node,
                subButton: cc.Node,
                goldCoinPos: cc.Node,
                energyGunSprite: cc.Node
            },
            onLoad: function() {
                this.click_interval = .15,
                this.longtouch_interval = .2,
                this.fishScene = cc.find("Canvas").getComponent("fishScene"),
                this.game = cc.find("Canvas/Game"),
                this.ui = cc.find("Canvas/UI"),
                this.countDown = cc.find("Canvas/UI/countDown"),
                this.countDownLabel = this.countDown.getChildByName("label").getComponent(cc.Label),
                this.touchPoint = cc.find("Canvas/touchPoint/label"),
                this.coinLabel = this.node.parent.getChildByName("money").getComponent(cc.Label),
                this.ticketLabel = this.node.parent.getChildByName("Base_Lottery").getChildByName("ticket").getComponent(cc.Label),
                this.bulletLabel = this.node.parent.getChildByName("label").getComponent(cc.Label),
                this.energyGunCountDown = this.node.getChildByName("ani").getChildByName("Energy_Time"),
                this.persistNode = cc.find("persistNode").getComponent("persistNode"),
                this.lang = kf.require("util.lang"),
                this.clientEvent = kf.require("basic.clientEvent"),
                this.loginLogic = kf.require("logic.login"),
                this.protocol = kf.require("util.byteProtocol"),
                this.dictLogic = kf.require("logic.dict"),
                this.roomLogic = kf.require("logic.room"),
                this.isWork = !1,
                this.canUpdateMoney = !0,
                this.canShoot = !0,
                this.isEnergyGun = !1,
                this.energyGunTime = 20,
                this.roomId = this.protocol.getFieldValue("IntoGameRespone", "room_id"),
                this.registerMsg(),
                this.roomLogic.setPauseWeapon(!1)
            },
            init: function(t) {
                this.uin = t.uin,
                this.id = t.seatid,
                this.coin = t.bullet,
                this.loginLogic.isPlayer(this.uin) ? (this.addButton.active = !0, this.subButton.active = !0, this.node.parent.getChildByName("Base_Lottery").active = !0) : (this.addButton.active = !1, this.subButton.active = !1, this.node.parent.getChildByName("Base_Lottery").active = !1),
                this.isWork = !0,
                this.interval = this.click_interval,
                this.duration = this.interval,
                this.notWorkTime = 0,
                this.canUpdateMoney = !0,
                this.canShoot = !0,
                this.initGun(),
                this.updateCoin(),
                this.updateTicket()
            },
            initGun: function() {
                for (var t = 0; t < this.roomLogic.userData.length; t++) this.roomLogic.userData[t].seatid === this.id && (this.gunId = this.protocol.getFieldValueInObj(this.roomLogic.userData[t], "gunid"), this.showGun(this.protocol.getFieldValueInObj(this.roomLogic.userData[t], "uin"), this.gunId))
            },
            onDestroy: function() {
                this.unregisterEvent()
            },
            registerMsg: function() {
                this.registerHandler = [["changeGun", this.showGun.bind(this)], ["playerShoot", this.playerShoot.bind(this)], ["playerQuit", this.playerQuit.bind(this)], ["updateWeaponScore", this.updateWeaponScore.bind(this)], ["updateTicket", this.updateTicket.bind(this)], ["changeSeat", this.changeSeat.bind(this)], ["showGoldCoin", this.showGoldCoin.bind(this)], ["isChallenge", this.setChallenge.bind(this)], ["getEnergyGun", this.getEnergyGun.bind(this)], ["showEnergyGun", this.showEnergyGun.bind(this)], ["hideEnergyGun", this.hideEnergyGun.bind(this)], ["setWeaponPause", this.setWeaponPause.bind(this)]];
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.registerEvent(e[0], e[1])
                }
            },
            unregisterEvent: function() {
                for (var t = 0; t < this.registerHandler.length; t++) {
                    var e = this.registerHandler[t];
                    this.clientEvent.unregisterEvent(e[0], e[1])
                }
            },
            exitWeapon: function() {
                this.isWork = !1,
                this.node.getComponent(cc.Sprite).spriteFrame = this.myWeapons[0]
            },
            showGun: function(t, e) {
                if (this.isWork) for (var i = 0; i < this.roomLogic.userData.length; i++) this.protocol.getFieldValueInObj(this.roomLogic.userData[i], "uin") === t && this.id === this.roomLogic.userData[i].seatid && (this.uin = t, this.gunId = e, this.gunLevel = parseInt(this.dictLogic.getGunLevel(this.gunId)), this.gunRes = this.dictLogic.getGunRes(this.gunId), this.bulletLabel.string = this.gunLevel.toString(), this.gunIndex = this.roomLogic.getChangeGunIndex(this.gunRes), this.isEnergyGun ? this.node.getComponent(cc.Sprite).spriteFrame = this.myWeapons[3] : this.loginLogic.isPlayer(t) ? this.node.getComponent(cc.Sprite).spriteFrame = this.myWeapons[this.gunIndex] : this.node.getComponent(cc.Sprite).spriteFrame = this.otherWeapons[this.gunIndex], this.roomLogic.setGunLevel(this.id, this.gunLevel), this.persistNode.playAudio("changeBarrel"))
            },
            playerShoot: function(t) {
                if (this.isWork && this.uin === t.uin && this.canShoot) {
                    var e = cc.p(t.x - this.node.x - cc.winSize.width / 2, t.y - this.node.y - cc.winSize.height / 2),
                    i = cc.pAngleSigned(cc.p(0, 100), e);
                    this.node.rotation = -(180 / Math.PI * i),
                    this.isEnergyGun ? this.node.getComponent(cc.Animation).play(this.node.name + "611") : this.node.getComponent(cc.Animation).play(this.node.name),
                    this.coin -= this.gunLevel,
                    this.fishScene.createBullet({
                        id: this.id,
                        uin: this.uin,
                        gunIndex: this.gunIndex,
                        isEnergyGun: this.isEnergyGun
                    }),
                    this.updateCoin()
                }
            },
            update: function(t) {
                if (this.isWork && this.loginLogic.isPlayer(this.uin) && this.canShoot) {
                    if (!this.touchPoint.change) return this.long_duration = 0,
                    this.interval = this.click_interval,
                    this.duration += t,
                    void(this.duration > this.interval && (this.duration = this.interval));
                    var e = this.touchPoint.convertToWorldSpace(cc.p(0, 0)),
                    i = cc.p(e.x - this.node.x - cc.winSize.width / 2, e.y - this.node.y - cc.winSize.height / 2),
                    n = cc.pAngleSigned(cc.p(0, 100), i);
                    if (this.node.rotation = -(180 / Math.PI * n), this.notWorkTime = 0, this.countDown.active = !1, this.duration += t, this.long_duration += t, this.long_duration >= .35 && (this.interval = this.longtouch_interval), !(this.duration < this.interval)) {
                        if (this.duration = 0, this.coin < this.gunLevel) {
                            var s = this.gunId;
                            if (this.gunId = this.roomLogic.getNextLevelGunId(this.roomId, this.gunId, -1, !0), this.gunId !== s.toString()) return void this.roomLogic.changeGunRequest(this.gunId);
                            this.roomLogic.setPauseWeapon(!0);
                            var o = this;
                            if (this.roomLogic.accountALMSCount < 3) {
                                var a = this.dictLogic.getLanguage("150266")[1];
                                a = kf.require("util.richlabel").replaceString(a, 3 - this.roomLogic.accountALMSCount);
                                var r = {
                                    title: this.dictLogic.getLanguage("150041")[1],
                                    message1: this.dictLogic.getLanguage("150264")[1],
                                    message2: a,
                                    button1: {
                                        name: this.lang.get("MBMONEY"),
                                        frame: 1,
                                        callback: function() {
                                            o.fishScene.shop1(),
                                            o.roomLogic.setPauseWeapon(!1),
                                            o.clientEvent.dispatchEvent("setAutomaticFire", !1)
                                        }
                                    },
                                    button3: {
                                        name: this.dictLogic.getLanguage("150265")[1],
                                        frame: 0,
                                        callback: function() {
                                            o.roomLogic.setPauseWeapon(!1),
                                            o.clientEvent.dispatchEvent("setAutomaticFire", !1),
                                            o.clientEvent.dispatchEvent("receiveRelief")
                                        }
                                    }
                                }
                            } else var r = {
                                message: this.lang.get("noMoney"),
                                button1: {
                                    name: this.lang.get("MBCANCEL"),
                                    frame: 1,
                                    callback: function() {
                                        o.roomLogic.setPauseWeapon(!1),
                                        o.clientEvent.dispatchEvent("setAutomaticFire", !1)
                                    }
                                },
                                button3: {
                                    name: this.lang.get("MBMONEY"),
                                    frame: 0,
                                    callback: function() {
                                        o.fishScene.shop1(),
                                        o.roomLogic.setPauseWeapon(!1),
                                        o.clientEvent.dispatchEvent("setAutomaticFire", !1)
                                    }
                                }
                            };
                            return void this.clientEvent.dispatchEvent("showMessage", r)
                        }
                        this.roomLogic.pauseWeapon || (this.coin -= this.gunLevel, this.updateCoin(), this.protocol.setFieldValue("LoginRespone", "coin", this.coin), this.isEnergyGun ? this.node.getComponent(cc.Animation).play(this.node.name + "611") : this.node.getComponent(cc.Animation).play(this.node.name), this.fishScene.createBullet({
                            id: this.id,
                            uin: this.uin,
                            gunIndex: this.gunIndex,
                            isEnergyGun: this.isEnergyGun
                        }))
                    }
                }
            },
            updateWeaponScore: function(t, e) {
                if (this.isWork && this.id === e) {
                    var i = Math.floor(t / this.gunLevel);
                    if (i >= 30) {
                        var n = this.roomLogic.getPrefab("BombEffect");
                        n.parent = this.node.parent,
                        1 === this.id || 2 === this.id ? n.position = cc.p(this.node.x, this.node.y - n.height / 2 - 50) : 3 !== this.id && 4 !== this.id || (n.position = cc.p(this.node.x, this.node.y + n.height / 2 + 50));
                        var s = n.getChildByName("number").getComponent(cc.Label);
                        s.string = t,
                        this.scheduleOnce(function() {
                            this.roomLogic.putInPool("BombEffect", n)
                        },
                        2)
                    }
                }
            },
            updateTicket: function() {
                this.loginLogic.isPlayer(this.uin) && (this.ticketLabel.string = this.protocol.getFieldValue("LoginRespone", "ticket"), this.coin = this.protocol.getFieldValue("LoginRespone", "coin"), this.coinLabel.string = this.coin + "")
            },
            updateCoin: function() {
                this.coinLabel.string = this.coin
            },
            addWeaponLevel: function() {
                this.gunId = this.roomLogic.getNextLevelGunId(this.roomId, this.gunId, 1, !1),
                this.roomLogic.changeGunRequest(this.gunId)
            },
            subWeaponLevel: function() {
                this.gunId = this.roomLogic.getNextLevelGunId(this.roomId, this.gunId, -1, !1),
                this.roomLogic.changeGunRequest(this.gunId)
            },
            playerQuit: function(t) {
                if (t.seatid === this.id) {
                    var e = this.node.parent.getComponent(cc.Animation).play();
                    e.wrapMode = cc.WrapMode.Reverse,
                    this.clientEvent.dispatchEvent("updateJoinButton", t.seatid),
                    this.exitWeapon(),
                    this.isEnergyGun && this.scheduleOnce(function() {
                        this.isEnergyGun = !1,
                        this.node.getChildByName("ani").getChildByName("611_Light").active = !1,
                        this.node.getChildByName("ani").getChildByName("Energy_Time").active = !1,
                        this.node.getChildByName("ani").getChildByName("611_Light2").active = !1,
                        this.node.getChildByName("ani").active = !1,
                        this.node.getComponent(cc.Sprite).spriteFrame = this.otherWeapons[this.gunIndex]
                    },
                    .56)
                }
            },
            changeSeat: function(t, e, i) {
                if (this.id === t) {
                    var n = this.node.parent.getComponent(cc.Animation).play();
                    n.wrapMode = cc.WrapMode.Reverse,
                    this.clientEvent.dispatchEvent("updateJoinButton", t),
                    this.exitWeapon()
                } else this.id === e && (this.roomLogic.changeSeatData(i.uin, e), this.clientEvent.dispatchEvent("playerJoin", i))
            },
            showGoldCoin: function(t, e) {
                if (this.persistNode.playAudio("hitAudio"), this.id === e && 0 !== t) {
                    this.coin += t,
                    this.loginLogic.isPlayer(this.uin) && this.protocol.setFieldValue("LoginRespone", "coin", this.coin),
                    this.canUpdateMoney && this.updateCoin();
                    var i, n, s, o = Math.floor(t / this.gunLevel);
                    1 === e || 2 === e ? i = 1 : 3 !== e && 4 !== e || (i = 2);
                    var a = "GoldCoin" + i,
                    r = this.roomLogic.getPrefab(a);
                    switch (this.node.parent.addChild(r), r.setLocalZOrder( - 1), r.setPosition(this.goldCoinPos.getPosition()), r.getChildByName("label").getComponent(cc.Label).string = t, i) {
                    case 1:
                        o < 150 ? (n = 5 * Math.floor(Math.pow(500 * o, .4) - 10), s = cc.moveBy(1, cc.p(0, -n))) : s = cc.moveBy(1, cc.p(0, -405));
                        break;
                    case 2:
                        o < 150 ? (n = 5 * Math.floor(Math.pow(500 * o, .4) - 10), s = cc.moveBy(1, cc.p(0, n))) : s = cc.moveBy(1, cc.p(0, 405))
                    }
                    var c = cc.callFunc(function() {
                        var t;
                        1 === e || 4 === e ? t = cc.moveBy(.5, cc.p( - 60, 0)) : 2 !== e && 3 !== e || (t = cc.moveBy(.5, cc.p(60, 0))),
                        r.runAction(t),
                        r.getChildByName("Image_Ratedisplay").active = !1
                    }.bind(this));
                    r.runAction(cc.sequence(s, c)),
                    this.scheduleOnce(function() {
                        this.roomLogic.putInPool(r)
                    },
                    2)
                }
            },
            setChallenge: function() {
                this.addButton.active = !1,
                this.subButton.active = !1,
                this.canUpdateMoney = !1,
                4 === this.protocol.getFieldValue("protoChallengeStatusNotify", "status") && (this.canShoot = !1)
            },
            getEnergyGun: function(t, e) {
                if (this.id === e) {
                    this.energyGunSprite.position = t,
                    this.energyGunSprite.active = !0;
                    var i = cc.moveTo(1, this.node.position).easing(cc.easeSineInOut());
                    this.energyGunSprite.runAction(cc.sequence(cc.delayTime(1), i))
                }
            },
            showEnergyGun: function() {
                var t = this.protocol.getFieldValue("protoDoubleRewardNotice", "seatId");
                this.id === t && (this.energyGunTime = 20, this.isEnergyGun = !0, this.energyGunSprite.active = !1, this.scheduleOnce(function() {
                    this.node.getComponent(cc.Sprite).spriteFrame = this.myWeapons[3],
                    this.node.getChildByName("ani").getChildByName("611_Light").active = !0,
                    this.node.getChildByName("ani").getChildByName("Energy_Time").active = !0
                },
                .5), this.node.getChildByName("ani").active = !0, this.energyGunCountDown.getComponent(cc.Label).string = this.energyGunTime, this.schedule(this.energyCountDown, 1), this.node.getChildByName("ani").getChildByName("611_Light2").active = !0, this.node.getChildByName("ani").getChildByName("611_Light2").getComponent(cc.Animation).play(), this.node.getChildByName("ani").getChildByName("Lightingeffect").getComponent(cc.Animation).play())
            },
            energyCountDown: function() {
                this.energyGunTime--,
                this.energyGunTime <= 0 && this.unschedule(this.energyCountDown),
                this.energyGunCountDown.getComponent(cc.Label).string = this.energyGunTime,
                this.energyGunCountDown.getComponent(cc.Animation).play()
            },
            hideEnergyGun: function() {
                var t = this.protocol.getFieldValue("protoDoubleRewardNotice", "seatId");
                this.id === t && (this.node.getChildByName("ani").getChildByName("611_Light2").getComponent(cc.Animation).play(), this.node.getChildByName("ani").getChildByName("Lightingeffect").getComponent(cc.Animation).stop("lightingEffect"), this.node.getChildByName("ani").getChildByName("Lightingeffect").getComponent(cc.Animation).play("lightingEffect1"), this.isEnergyGun = !1, this.scheduleOnce(function() {
                    this.loginLogic.isPlayer(this.uin) ? this.node.getComponent(cc.Sprite).spriteFrame = this.myWeapons[this.gunIndex] : this.node.getComponent(cc.Sprite).spriteFrame = this.otherWeapons[this.gunIndex],
                    this.node.getChildByName("ani").getChildByName("611_Light").active = !1,
                    this.node.getChildByName("ani").getChildByName("Energy_Time").active = !1
                },
                .5), this.scheduleOnce(function() {
                    this.node.getChildByName("ani").getChildByName("611_Light2").active = !1,
                    this.node.getChildByName("ani").active = !1
                },
                1))
            },
            setWeaponPause: function(t) {
                this.canShoot = t
            }
        }),
        cc._RFpop()
    },
    {}],
    xxtea: [function(t, e, i) {
        "use strict";
        cc._RFpush(e, "bf34fZq4m5JTK5fwCvpZfa+", "xxtea"),
        window.util.xxtea = function() {
            var t = {};
            return t.init = function(t) {
                this._keyForTea = t
            },
            t._long2str = function(t, e) {
                var i = t.length,
                n = i - 1 << 2;
                if (e) {
                    var s = t[i - 1];
                    if (s < n - 3 || s > n) return null;
                    n = s
                }
                for (var o = 0; o < i; o++) t[o] = String.fromCharCode(255 & t[o], t[o] >>> 8 & 255, t[o] >>> 16 & 255, t[o] >>> 24 & 255);
                return e ? t.join("").substring(0, n) : t.join("")
            },
            t._str2long = function(t, e) {
                for (var i = t.length,
                n = [], s = 0; s < i; s += 4) n[s >> 2] = t.charCodeAt(s) | t.charCodeAt(s + 1) << 8 | t.charCodeAt(s + 2) << 16 | t.charCodeAt(s + 3) << 24;
                return e && (n[n.length] = i),
                n
            },
            t.xxteaEncrypt = function(t) {
                if ("" == t) return "";
                t = this.encode64(this.utf16to8(t));
                var e = this._str2long(t, !0),
                i = this._str2long(this._keyForTea, !1);
                i.length < 4 && (i.length = 4);
                for (var n, s, o, a = e.length - 1,
                r = e[a], c = e[0], h = 2654435769, l = Math.floor(6 + 52 / (a + 1)), g = 0; 0 < l--;) {
                    for (g = g + h & 4294967295, s = g >>> 2 & 3, o = 0; o < a; o++) c = e[o + 1],
                    n = (r >>> 5 ^ c << 2) + (c >>> 3 ^ r << 4) ^ (g ^ c) + (i[3 & o ^ s] ^ r),
                    r = e[o] = e[o] + n & 4294967295;
                    c = e[0],
                    n = (r >>> 5 ^ c << 2) + (c >>> 3 ^ r << 4) ^ (g ^ c) + (i[3 & o ^ s] ^ r),
                    r = e[a] = e[a] + n & 4294967295
                }
                return this.encode64(this._long2str(e, !1))
            },
            t.xxtea_decrypt = function(t) {
                if (!t) return "";
                var e = this.decode64(t);
                if ("" == e || e == t) return "";
                t = e;
                var i = this._str2long(t, !1),
                n = this._str2long(this._keyForTea, !1);
                n.length < 4 && (n.length = 4);
                for (var s, o, a, r = i.length - 1,
                c = i[r - 1], h = i[0], l = 2654435769, g = Math.floor(6 + 52 / (r + 1)), d = g * l & 4294967295; 0 != d;) {
                    for (o = d >>> 2 & 3, a = r; a > 0; a--) c = i[a - 1],
                    s = (c >>> 5 ^ h << 2) + (h >>> 3 ^ c << 4) ^ (d ^ h) + (n[3 & a ^ o] ^ c),
                    h = i[a] = i[a] - s & 4294967295;
                    c = i[r],
                    s = (c >>> 5 ^ h << 2) + (h >>> 3 ^ c << 4) ^ (d ^ h) + (n[3 & a ^ o] ^ c),
                    h = i[0] = i[0] - s & 4294967295,
                    d = d - l & 4294967295
                }
                return this.utf8to16(this.decode64(this._long2str(i, !0)))
            },
            t.utf16to8 = function(t) {
                var e, i, n, s;
                for (e = "", n = t.length, i = 0; i < n; i++) s = t.charCodeAt(i),
                s >= 1 && s <= 127 ? e += t.charAt(i) : s > 2047 ? (e += String.fromCharCode(224 | s >> 12 & 15), e += String.fromCharCode(128 | s >> 6 & 63), e += String.fromCharCode(128 | s >> 0 & 63)) : (e += String.fromCharCode(192 | s >> 6 & 31), e += String.fromCharCode(128 | s >> 0 & 63));
                return e
            },
            t.utf8to16 = function(t) {
                t = t.toString();
                var e, i, n, s, o, a;
                for (e = "", n = t.length, i = 0; i < n;) switch (s = t.charCodeAt(i++), s >> 4) {
                case 0:
                case 1:
                case 2:
                case 3:
                case 4:
                case 5:
                case 6:
                case 7:
                    e += t.charAt(i - 1);
                    break;
                case 12:
                case 13:
                    o = t.charCodeAt(i++),
                    e += String.fromCharCode((31 & s) << 6 | 63 & o);
                    break;
                case 14:
                    o = t.charCodeAt(i++),
                    a = t.charCodeAt(i++),
                    e += String.fromCharCode((15 & s) << 12 | (63 & o) << 6 | (63 & a) << 0)
                }
                return e
            },
            t._keyForBase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
            t.encode64 = function(t) {
                var e, i, n, s, o, a = "",
                r = "",
                c = "",
                h = 0;
                do e = t.charCodeAt(h++),
                i = t.charCodeAt(h++),
                r = t.charCodeAt(h++),
                n = e >> 2,
                s = (3 & e) << 4 | i >> 4,
                o = (15 & i) << 2 | r >> 6,
                c = 63 & r,
                isNaN(i) ? o = c = 64 : isNaN(r) && (c = 64),
                a = a + this._keyForBase64.charAt(n) + this._keyForBase64.charAt(s) + this._keyForBase64.charAt(o) + this._keyForBase64.charAt(c),
                e = i = r = "",
                n = s = o = c = "";
                while (h < t.length);
                return a
            },
            t.decode64 = function(t) {
                var e, i, n, s, o, a = "",
                r = "",
                c = "",
                h = 0,
                l = /[^A-Za-z0-9\+\/\=\n]/g;
                if (l.exec(t)) return "";
                t = t.replace(/[^A-Za-z0-9\+\/\=]/g, "");
                do n = this._keyForBase64.indexOf(t.charAt(h++)),
                s = this._keyForBase64.indexOf(t.charAt(h++)),
                o = this._keyForBase64.indexOf(t.charAt(h++)),
                c = this._keyForBase64.indexOf(t.charAt(h++)),
                e = n << 2 | s >> 4,
                i = (15 & s) << 4 | o >> 2,
                r = (3 & o) << 6 | c,
                a += String.fromCharCode(e),
                64 != o && (a += String.fromCharCode(i)),
                64 != c && (a += String.fromCharCode(r)),
                e = i = r = "",
                n = s = o = c = "";
                while (h < t.length);
                return a
            },
            t
        },
        cc._RFpop()
    },
    {}]
},
{},
["clientEvent", "eventListener", "long", "bagLogic", "dialLogic", "dictLogic", "hallLogic", "login", "preloadLogic", "roomLogic", "taskLogic", "time", "editBoxTouch", "generalLabel", "message", "persistNode", "waiting", "buttonManager", "byteProtocol", "configuration", "lang", "md5", "network", "protobufProtocol", "richlabel", "socket", "xxtea", "cn", "board", "bullet", "caustics", "challengeRank", "coin", "diaPop", "drip", "fish", "fishMoving", "fishScene", "goldDown", "help", "money", "net", "weapon", "activity", "arena", "bag", "bagItem", "broadcast", "coinContent", "coinItem", "competRule", "competitiveChallenge", "dailySign", "dailyTask", "dailyTaskItem", "dial", "eightHonors", "exgratiaPackage", "findPassword", "fishContent", "fishItem", "fishingMaster", "freeGold", "gameItem", "hallScene", "head", "loginNotice", "loginScene", "mail", "mailBag", "masterDesk", "monthDayItem", "order", "pay", "popUp", "prize", "prizeItem", "protocol", "rechargeItem", "rechargeItemContent", "redPacketItem", "redpacket", "registered", "rewardItem", "setting", "shop", "shopItem", "table", "tableContainer", "top", "topContent", "topItem", "userProtocol", "vip", "warehours"]);